Skip to main content

Module repl

Module repl 

Source
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 at three levels: commands, sub-commands, argument flags
  • Colored prompts and error display

§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§

ReplInterface
REPL (Read-Eval-Print Loop) interface