projects : am projects (agregats par depot depuis le journal) + profils de projet dans la config (issue #29) - agent dominant, sessions, durees, cache projects.json rafraichi par doctor --fix
This commit is contained in:
+6
-1
@@ -62,6 +62,7 @@ const COMMAND_DESCRIPTIONS: &[(&str, &str)] = &[
|
||||
("status", "show agent state"),
|
||||
("sessions", "list agent sessions"),
|
||||
("stats", "usage statistics"),
|
||||
("projects", "project activity"),
|
||||
("log", "read the event journal"),
|
||||
("logs", "tail an agent log"),
|
||||
("history", "search command history"),
|
||||
@@ -144,7 +145,7 @@ impl AmCompleter {
|
||||
Self {
|
||||
theme: std::cell::Cell::new(crate::theme::default_theme()),
|
||||
commands: vec![
|
||||
"list", "status", "sessions", "stats", "log", "logs", "history", "init", "alias", "open", "search", "info", "install", "uninstall", "update",
|
||||
"list", "status", "sessions", "stats", "projects", "log", "logs", "history", "init", "alias", "open", "search", "info", "install", "uninstall", "update",
|
||||
"start", "stop", "restart", "run", "doctor", "config", "completion",
|
||||
"self-update", "self-uninstall", "export", "import", "shell", "theme",
|
||||
"ls", "dir", "cd", "ps", "where", "get", "help", "version", "exit",
|
||||
@@ -1255,6 +1256,9 @@ fn handle_line(
|
||||
agent: rest.first().cloned(),
|
||||
period: opt_value("--period"),
|
||||
},
|
||||
"projects" => Command::Projects {
|
||||
name: rest.first().cloned(),
|
||||
},
|
||||
"log" => Command::Log {
|
||||
agent: rest.first().cloned(),
|
||||
kind: opt_value("--kind"),
|
||||
@@ -1378,6 +1382,7 @@ fn is_am_command(word: &str) -> bool {
|
||||
| "status"
|
||||
| "sessions"
|
||||
| "stats"
|
||||
| "projects"
|
||||
| "log"
|
||||
| "logs"
|
||||
| "history"
|
||||
|
||||
Reference in New Issue
Block a user