Skip to main content

osp_cli/repl/
mod.rs

1//! REPL engine plus the host-side interactive shell integration.
2
3pub(crate) mod completion;
4pub(crate) mod dispatch;
5mod engine;
6pub(crate) mod help;
7mod highlight;
8pub(crate) mod history;
9mod history_store;
10mod host;
11pub(crate) mod input;
12pub(crate) mod lifecycle;
13mod menu;
14mod menu_core;
15pub(crate) mod presentation;
16pub(crate) mod surface;
17
18#[cfg(test)]
19pub(crate) use dispatch::apply_repl_shell_prefix;
20pub use engine::{
21    CompletionDebug, CompletionDebugFrame, CompletionDebugMatch, CompletionDebugOptions, DebugStep,
22    HighlightDebugSpan, HistoryConfig, HistoryEntry, HistoryShellContext, LineProjection,
23    LineProjector, OspHistoryStore, PromptRightRenderer, ReplAppearance, ReplInputMode,
24    ReplLineResult, ReplPrompt, ReplReloadKind, ReplRunConfig, ReplRunResult, SharedHistory,
25    color_from_style_spec, debug_completion, debug_completion_steps, debug_highlight,
26    default_pipe_verbs, expand_history, run_repl,
27};
28pub(crate) use engine::{
29    CompletionTraceEvent, CompletionTraceMenuState, trace_completion, trace_completion_enabled,
30};
31pub(crate) use host::{
32    ReplViewContext, repl_command_spec, run_plugin_repl, run_repl_debug_command_for,
33};
34#[cfg(test)]
35pub(crate) use input::{ReplParsedLine, is_repl_shellable_command};
36#[cfg(test)]
37pub(crate) use presentation::{
38    render_prompt_template, render_repl_prompt_right_for_test, theme_display_name,
39};