pub enum SlashCmd {
Show 41 variants
Model(Option<String>),
Reasoning(Option<ReasoningLevel>),
VisibleReasoning(Option<String>),
Safety(Option<SafetyMode>),
Clear,
Save(Option<String>),
Load(Option<String>),
List,
Usage,
Context(ContextCmd),
Compact(Option<String>),
Memory,
Remember(Option<String>),
Forget(Option<String>),
ConsolidateMemory,
Doctor,
Tasks,
Task(Option<String>),
Pause(Option<String>),
Resume(Option<String>),
Cancel(Option<String>),
Handoff(Option<String>),
Report(Option<String>),
Processes,
Logs(Option<String>),
Stop(Option<String>),
Restart(Option<String>),
Open(Option<String>),
Ports,
Approvals,
Approve(Option<String>),
Deny(Option<String>),
Checkpoint(Option<String>),
Checkpoints,
Restore(Option<String>),
ModelInfo(Option<String>),
Plugins,
CloudSetup,
Help,
Quit,
Unknown(String),
}Expand description
Slash commands — a typed surface over what the user typed as
/<name> [args]. Parsed in app::event_source against the single
COMMAND_REGISTRY; unknown commands produce SlashCmd::Unknown
so the reducer can issue a “no such command” status line.
Variants§
Model(Option<String>)
No arg → show current; Some → switch (and pull if needed).
Reasoning(Option<ReasoningLevel>)
VisibleReasoning(Option<String>)
Safety(Option<SafetyMode>)
No arg → show current safety mode; Some → switch it for this
session (Shift+Tab cycles the same field). Session-scoped.
Clear
Save(Option<String>)
Load(Option<String>)
List
Usage
Context(ContextCmd)
Compact(Option<String>)
Memory
List saved durable memories.
Remember(Option<String>)
Save free-text as a private memory.
Forget(Option<String>)
Delete a memory by name/id.
ConsolidateMemory
Prune duplicate/obsolete memories via a one-shot model pass.
Doctor
Tasks
Task(Option<String>)
Pause(Option<String>)
Resume(Option<String>)
Cancel(Option<String>)
Handoff(Option<String>)
Report(Option<String>)
Processes
Logs(Option<String>)
Stop(Option<String>)
Restart(Option<String>)
Open(Option<String>)
Ports
Approvals
Approve(Option<String>)
Deny(Option<String>)
Checkpoint(Option<String>)
Checkpoints
Restore(Option<String>)
ModelInfo(Option<String>)
Plugins
CloudSetup
Help
Quit
Unknown(String)
User typed something that isn’t in the registry; carries the raw name for the error message.
Trait Implementations§
impl Eq for SlashCmd
impl StructuralPartialEq for SlashCmd
Auto Trait Implementations§
impl Freeze for SlashCmd
impl RefUnwindSafe for SlashCmd
impl Send for SlashCmd
impl Sync for SlashCmd
impl Unpin for SlashCmd
impl UnsafeUnpin for SlashCmd
impl UnwindSafe for SlashCmd
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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