Cheer.Repl (Cheer v0.1.5)

Copy Markdown View Source

Interactive REPL mode for a command tree.

Presents a prompt and dispatches typed commands through the command tree. Supports command history, help, and tab-like introspection.

Usage

Cheer.Repl.start(MyApp.CLI.Root, prog: "my-app")

Summary

Functions

Start an interactive REPL for the command tree.

Functions

start(root, opts \\ [])

@spec start(
  module(),
  keyword()
) :: :ok

Start an interactive REPL for the command tree.

Options:

  • :prog - program name for the prompt (default: root command name)
  • :banner - banner text to print on start (default: auto-generated)