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)
  • Command history (persistent across sessions)
  • Tab completion (future enhancement)
  • 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())?;
repl.run()?;

Structs§

ReplInterface
REPL (Read-Eval-Print Loop) interface