This commit is contained in:
+8
-2
@@ -112,6 +112,7 @@ const COMMAND_DESCRIPTIONS: &[(&str, &str)] = &[
|
||||
("audit", "who changed what, when (config checksums)"),
|
||||
("service", "register an agent as a system service (autostart)"),
|
||||
("schedule", "plan am commands (daily) and check the fleet health"),
|
||||
("monitor", "real-time TUI of managed processes (cpu/rss/uptime)"),
|
||||
("shell", "show or switch the system shell"),
|
||||
("theme", "show or switch the color theme"),
|
||||
("tip", "cheat sheet of the most useful commands"),
|
||||
@@ -226,7 +227,7 @@ impl AmCompleter {
|
||||
"self-update", "self-uninstall", "export", "import", "shell", "theme",
|
||||
"tip", "dashboard", "favorite", "unfavorite", "note", "tag", "untag", "tags",
|
||||
"profile", "man", "models", "catalog", "suggest", "audit",
|
||||
"service", "schedule",
|
||||
"service", "schedule", "monitor",
|
||||
"ls", "dir", "cd", "ps", "where", "get", "help", "version", "exit",
|
||||
],
|
||||
config_sub: vec!["show", "path", "edit", "validate", "add"],
|
||||
@@ -776,7 +777,7 @@ pub fn banner_box(
|
||||
" models models · models --prune · catalog · suggest · audit".to_string(),
|
||||
));
|
||||
rows.push(inner(
|
||||
" automate service install · schedule add · doctor --watch".to_string(),
|
||||
" automate service install · schedule add · doctor --watch · monitor".to_string(),
|
||||
));
|
||||
rows.push(inner(
|
||||
" system self-update · self-uninstall · export · import".to_string(),
|
||||
@@ -1532,6 +1533,11 @@ fn handle_line(
|
||||
"stats" => Command::Stats {
|
||||
agent: rest.first().cloned(),
|
||||
period: opt_value("--period"),
|
||||
costs: flag("--costs"),
|
||||
},
|
||||
"monitor" => Command::Monitor {
|
||||
interval: opt_value("--interval").and_then(|v| v.parse().ok()),
|
||||
json: flag("--json"),
|
||||
},
|
||||
"top" => Command::Top {
|
||||
period: opt_value("--period"),
|
||||
|
||||
Reference in New Issue
Block a user