history : historique structure par session + am history (issue #7) - migration one-shot de history.txt, filtres kind/cwd/search/failed/session, enregistrement REPL avec duree et exit
This commit is contained in:
+22
@@ -238,6 +238,28 @@ pub static HELP_SPECS: &[HelpSpec] = &[
|
||||
HelpExample { desc: "Starts of one agent since a date.", code: "log claude-code --kind start --since 2026-08-01" },
|
||||
],
|
||||
},
|
||||
HelpSpec {
|
||||
name: "history",
|
||||
category: "Commands",
|
||||
usage: "history {flags}",
|
||||
about: "Search the command history (am and shell commands).",
|
||||
search_terms: &["past", "commands", "rerun"],
|
||||
flags: &[
|
||||
HelpFlag { short: "", long: "--kind", value: "KIND", desc: "Only commands of this kind (am or shell)" },
|
||||
HelpFlag { short: "", long: "--cwd", value: "DIR", desc: "Only commands run in this directory" },
|
||||
HelpFlag { short: "", long: "--search", value: "TEXT", desc: "Full-text search in the command line" },
|
||||
HelpFlag { short: "", long: "--failed", value: "", desc: "Only failed commands" },
|
||||
HelpFlag { short: "", long: "--session", value: "ID", desc: "Only commands of this session" },
|
||||
],
|
||||
subcommands: &[],
|
||||
parameters: &[],
|
||||
io: None,
|
||||
examples: &[
|
||||
HelpExample { desc: "The last 100 commands.", code: "history" },
|
||||
HelpExample { desc: "Find past installs.", code: "history --search install" },
|
||||
HelpExample { desc: "Failed commands only.", code: "history --failed" },
|
||||
],
|
||||
},
|
||||
HelpSpec {
|
||||
name: "search",
|
||||
category: "Commands",
|
||||
|
||||
Reference in New Issue
Block a user