Module repl

Module repl 

Source
Expand description

The interactive shell: one attach, many commands.

Every line is re-parsed with the same clap tree the one-shot grammar uses, so help, help phy, and phy --help all work and the completer can walk the tree instead of maintaining a word list.

StructsΒ§

ReplCommandLine
Wrapper used to parse REPL lines and to build the completion tree.
ReplHelper πŸ”’
Rustyline helper providing tab completion driven by the clap tree.

EnumsΒ§

ReplCommand
The REPL’s grammar: everything the one-shot tree has, plus the few verbs that only mean something inside a session.

FunctionsΒ§

banner πŸ”’
connect πŸ”’
connect: rediscover, or attach to the radio the user named.
possible_values πŸ”’
process_line πŸ”’
Parse and run one line. Ok(false) means the user asked to leave.
run
takes_value πŸ”’
Whether a clap argument consumes the next token as its value.