pub enum SlashCommand {
Show 69 variants
Help,
Status,
Sandbox,
Compact,
Bughunter {
scope: Option<String>,
},
Commit,
Pr {
context: Option<String>,
},
Issue {
context: Option<String>,
},
Ultraplan {
task: Option<String>,
},
Teleport {
target: Option<String>,
},
DebugToolCall,
Model {
model: Option<String>,
},
Permissions {
mode: Option<String>,
},
Clear {
confirm: bool,
},
Cost,
Resume {
session_path: Option<String>,
},
Config {
section: Option<String>,
},
Mcp {
action: Option<String>,
target: Option<String>,
},
Memory,
Init,
Diff,
Version,
Export {
path: Option<String>,
},
Session {
action: Option<String>,
target: Option<String>,
},
Plugins {
action: Option<String>,
target: Option<String>,
},
Agents {
args: Option<String>,
},
Skills {
args: Option<String>,
},
Doctor,
Login,
Logout,
Vim,
Upgrade,
Stats,
Share,
Feedback,
Files,
Fast,
Exit,
Summary,
Desktop,
Brief,
Advisor,
Stickers,
Insights,
Thinkback,
ReleaseNotes,
SecurityReview,
Keybindings,
PrivacySettings,
Plan {
mode: Option<String>,
},
Review {
scope: Option<String>,
},
Tasks {
args: Option<String>,
},
Theme {
name: Option<String>,
},
Voice {
mode: Option<String>,
},
Usage {
scope: Option<String>,
},
Rename {
name: Option<String>,
},
Copy {
target: Option<String>,
},
Hooks {
args: Option<String>,
},
Context {
action: Option<String>,
},
Color {
scheme: Option<String>,
},
Effort {
level: Option<String>,
},
Branch {
name: Option<String>,
},
Rewind {
steps: Option<String>,
},
Ide {
target: Option<String>,
},
Tag {
label: Option<String>,
},
OutputStyle {
style: Option<String>,
},
AddDir {
path: Option<String>,
},
History {
count: Option<String>,
},
Unknown(String),
}Variants§
Help
Status
Sandbox
Compact
Bughunter
Commit
Pr
Issue
Ultraplan
Teleport
DebugToolCall
Model
Permissions
Clear
Cost
Resume
Config
Mcp
Memory
Init
Diff
Version
Export
Session
Plugins
Agents
Skills
Doctor
Login
Logout
Vim
Upgrade
Stats
Feedback
Files
Fast
Exit
Summary
Desktop
Brief
Advisor
Stickers
Insights
Thinkback
ReleaseNotes
SecurityReview
Keybindings
PrivacySettings
Plan
Review
Tasks
Theme
Voice
Usage
Rename
Copy
Hooks
Context
Color
Effort
Branch
Rewind
Ide
Tag
OutputStyle
AddDir
History
Unknown(String)
Implementations§
Source§impl SlashCommand
impl SlashCommand
pub fn parse(input: &str) -> Result<Option<Self>, SlashCommandParseError>
Sourcepub fn slash_name(&self) -> &'static str
pub fn slash_name(&self) -> &'static str
Returns the canonical slash-command name (e.g. "/branch") for use in
error messages and logging. Derived from the spec table so it always
matches what the user would have typed.
Trait Implementations§
Source§impl Clone for SlashCommand
impl Clone for SlashCommand
Source§fn clone(&self) -> SlashCommand
fn clone(&self) -> SlashCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlashCommand
impl Debug for SlashCommand
Source§impl PartialEq for SlashCommand
impl PartialEq for SlashCommand
impl Eq for SlashCommand
impl StructuralPartialEq for SlashCommand
Auto Trait Implementations§
impl Freeze for SlashCommand
impl RefUnwindSafe for SlashCommand
impl Send for SlashCommand
impl Sync for SlashCommand
impl Unpin for SlashCommand
impl UnsafeUnpin for SlashCommand
impl UnwindSafe for SlashCommand
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