Skip to main content

ai_agent/commands/
diff.rs

1// Source: /data/home/swei/claudecode/openclaudecode/src/commands/diff/diff.tsx
2use super::Command;
3
4pub fn create_diff_command() -> Command {
5    Command::prompt("diff", "Show the differences between sessions").argument_hint("[<session-id>]")
6}
7
8pub fn create_clear_command() -> Command {
9    Command::local("clear", "Clear the conversation").argument_hint("[cache|conversation|all]")
10}
11
12pub fn create_compact_command() -> Command {
13    Command::local("compact", "Compact the conversation to save space")
14}
15
16pub fn create_resume_command() -> Command {
17    Command::local("resume", "Resume a previous session").argument_hint("<session-id>")
18}