Expand description
REPL (Read-Eval-Print Loop) implementation
This module provides an interactive REPL interface with:
- Line editing (arrow keys, history navigation)
- Per-application command history (persistent across sessions)
- Tab completion of command names,
:directives and option flags - Colored prompts and error display
:-prefixed directives (:help,:load,:quit,:exit), whose names can be overridden in the configuration
§Example
use dynamic_cli::interface::ReplInterface;
use dynamic_cli::prelude::*;
let registry = CommandRegistry::new();
let context = Box::new(MyContext::default());
let repl = ReplInterface::new(registry, context, "myapp".to_string(), None, None)?;
repl.run()?;Structs§
- Repl
Interface - REPL (Read-Eval-Print Loop) interface