pub enum ReplAction {
Show 22 variants
Quit,
SwitchModel(String),
PickModel,
SetupProvider(ProviderType, String),
PickProvider,
ShowHelp,
ShowCost,
ListSessions,
ResumeSession(String),
DeleteSession(String),
InjectPrompt(String),
Compact,
McpCommand(String),
Expand(usize),
Verbose(Option<bool>),
ListAgents,
ShowDiff,
MemoryCommand(Option<String>),
Undo,
ListSkills(Option<String>),
Handled,
NotACommand,
}Expand description
Action to take after processing a REPL command.
Variants§
Quit
SwitchModel(String)
PickModel
SetupProvider(ProviderType, String)
PickProvider
ShowHelp
ShowCost
ListSessions
ResumeSession(String)
DeleteSession(String)
InjectPrompt(String)
Inject text as if the user typed it (used by /diff review, /diff commit)
Compact
Compact the conversation by summarizing history
McpCommand(String)
Switch approval mode (with optional name, or interactive picker) MCP server management command
Expand(usize)
Expand Nth most recent tool output (1 = last)
Verbose(Option<bool>)
Toggle verbose tool output (None = toggle, Some = set)
ListAgents
List available sub-agents
ShowDiff
Show git diff summary
MemoryCommand(Option<String>)
Memory management command
Undo
Undo last turn’s file mutations
ListSkills(Option<String>)
List available skills (optional search query)
Handled
NotACommand
Auto Trait Implementations§
impl Freeze for ReplAction
impl RefUnwindSafe for ReplAction
impl Send for ReplAction
impl Sync for ReplAction
impl Unpin for ReplAction
impl UnsafeUnpin for ReplAction
impl UnwindSafe for ReplAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more