ilusm.dev

rpl

Interactive shell, autocomplete, history.

Load with: use rpl

Quick example

use rpl

result = rplst(10)
prn(result)

Functions

REPL state

rplne()

Creates a new instance.

rplst(config)

Sets a value or starts a process. Takes config.

rplhn(repl, line)

Performs the operation. Takes repl, line.

rplcm(repl, cmd_line)

Performs the operation. Takes repl, cmd_line.

rplva(code)

Performs the operation. Takes code.

rplvl(repl, code)

Validates. Takes repl, code.

rplst(repl, name, value)

Sets a value or starts a process. Takes repl, name, value.

rplge(repl, name)

Gets or retrieves a value. Takes repl, name.

History

rplad(repl, entry)

Adds an item. Takes repl, entry.

rplsh(repl)

Performs the operation. Takes repl.

rplpr(repl)

Processes or prints. Takes repl.

rplnx(repl)

Performs the operation. Takes repl.

Completion

rplcp(repl, prefix)

Performs the operation. Takes repl, prefix.

rplcl(repl, line, cursor_pos)

Closes or clears. Takes repl, line, cursor_pos.

Help

rplhp()

Performs the operation.

rplvr(repl)

Performs the operation. Takes repl.

rpldc(name)

Performs the operation. Takes name.

rpllo(repl, path)

Performs the operation. Takes repl, path.

Syntax highlighting

rplhi(line)

Performs the operation. Takes line.

Multi-line editing

rplml(repl)

Performs the operation. Takes repl.

Save/restore session

rplss(repl, path)

Performs the operation. Takes repl, path.

rplre(repl, path)

Performs the operation. Takes repl, path.

Main entry

rplma()

Performs the operation.

Notes

  • Replication - leader/follower, log shipping.