Module otpcl_repl

OTPCL shell/REPL.

Description

OTPCL shell/REPL.

Function Index

shell_init_state/1Given an input state, returns an output state with pre-imported shell commands and sensible default prompts.
simple_shell/1A simple read-parse-eval loop.
start/0Starts the OTPCL shell preloaded with commands useful for general shell-like usage (ls, cd, etc.).
start/1Starts the OTPCL shell with a user-provided custom state.

Function Details

shell_init_state/1

shell_init_state(State0) -> any()

Given an input state, returns an output state with pre-imported shell commands and sensible default prompts.

simple_shell/1

simple_shell(State) -> any()

A simple read-parse-eval loop.

start/0

start() -> any()

Starts the OTPCL shell preloaded with commands useful for general shell-like usage (ls, cd, etc.).

start/1

start(State) -> any()

Starts the OTPCL shell with a user-provided custom state. Useful for implementing customized shells (e.g. restricted command shells for embedding in other OTP applications).


Generated by EDoc