1097 lines
65 KiB
Plaintext
1097 lines
65 KiB
Plaintext
|
|
use builtin;
|
|
use str;
|
|
|
|
set edit:completion:arg-completer[am] = {|@words|
|
|
fn spaces {|n|
|
|
builtin:repeat $n ' ' | str:join ''
|
|
}
|
|
fn cand {|text desc|
|
|
edit:complex-candidate $text &display=$text' '(spaces (- 14 (wcswidth $text)))$desc
|
|
}
|
|
var command = 'am'
|
|
for word $words[1..-1] {
|
|
if (str:has-prefix $word '-') {
|
|
break
|
|
}
|
|
set command = $command';'$word
|
|
}
|
|
var completions = [
|
|
&'am'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help (see more with ''--help'')'
|
|
cand --help 'Print help (see more with ''--help'')'
|
|
cand -V 'Print version'
|
|
cand --version 'Print version'
|
|
cand list 'List installed agents (default); use --all for the whole catalog'
|
|
cand logs 'Tail the log file of an agent (--follow for a live view)'
|
|
cand open 'Open an agent''s installation directory in the file manager'
|
|
cand watch 'Supervise an agent and optionally restart it on crash'
|
|
cand dashboard 'Live TUI dashboard: overview, activity, stats, sessions, projects'
|
|
cand favorite 'Mark an agent as a favorite (star in list and status)'
|
|
cand unfavorite 'Remove the favorite star from an agent'
|
|
cand note 'Attach a free-form note to an agent (shown in ''am info''); ''am note <agent>'' without text prints the current note'
|
|
cand tag 'Add a personal tag to an agent'
|
|
cand untag 'Remove a personal tag from an agent'
|
|
cand tags 'List personal tags (with counts), optionally for one agent'
|
|
cand profile 'Manage environment profiles (dev, prod, ...)'
|
|
cand man 'Generate a man page for am (or for one command)'
|
|
cand _agents 'Internal: list agent names for shell completions (hidden)'
|
|
cand alias 'Manage command aliases (cc -> claude-code)'
|
|
cand secret 'Manage secrets in the OS keyring (never in plaintext config)'
|
|
cand start 'Start an agent (foreground by default, or detached with --background)'
|
|
cand stop 'Stop a background agent (SIGTERM, then SIGKILL after the timeout)'
|
|
cand restart 'Restart an agent: stop, then start with the same options'
|
|
cand status 'Show the state of one agent, or of every installed agent'
|
|
cand sessions 'List the sessions of every agent (and of the interactive shell)'
|
|
cand stats 'Show usage statistics computed from the event journal'
|
|
cand top 'Show the most used agents (top 10)'
|
|
cand report 'Write a markdown activity report'
|
|
cand projects 'Show which agent works on which project'
|
|
cand timeline 'One chronological view of every activity (journal + REPL history)'
|
|
cand log 'Read the event journal: everything am did'
|
|
cand install 'Install an agent and its dependencies'
|
|
cand uninstall 'Uninstall an agent (managed or external) and clean its files'
|
|
cand update 'Update an installed agent to the latest available version'
|
|
cand search 'Search the catalog by keyword (name, description, category, tags)'
|
|
cand history 'Search the command history (am and shell commands)'
|
|
cand info 'Show detailed information about one agent'
|
|
cand init 'Generate a local agent-manager.yaml for the current directory'
|
|
cand help 'Display help: the overview, a command, the command list, or a search'
|
|
cand version 'Display version and build information'
|
|
cand config 'Manage the configuration file'
|
|
cand doctor 'Check the environment: tools, config validity, paths, permissions'
|
|
cand run 'Run the agent command directly with the given arguments (no process management)'
|
|
cand completion 'Generate a shell completion script'
|
|
cand self-update 'Update agent-manager itself from GitHub Releases'
|
|
cand self-uninstall 'Remove agent-manager and everything it created from this machine'
|
|
cand export 'Export the configuration and installation state (backup)'
|
|
cand import 'Import a previously exported configuration and state'
|
|
}
|
|
&'am;list'= {
|
|
cand --category 'Only show agents of this category'
|
|
cand --sort 'Sort by name, version or status (default: name)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --all 'Show every agent known to the catalog, not only the installed ones'
|
|
cand --running 'Only show running agents'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;logs'= {
|
|
cand --lines 'Number of lines to show (default: 20)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --follow 'Follow the log as it grows'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;open'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;watch'= {
|
|
cand --interval 'Check interval in seconds (default: 5)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --restart 'Restart the agent automatically when it dies (with backoff)'
|
|
cand --notify 'Desktop notification on every restart'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;dashboard'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;favorite'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;unfavorite'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;note'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;tag'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;untag'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;tags'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;profile'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
cand list 'List every defined profile'
|
|
cand show 'Show one profile in detail (agent, env, args)'
|
|
}
|
|
&'am;profile;list'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;profile;show'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;man'= {
|
|
cand --output 'Write the page(s) to this directory instead of stdout'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;_agents'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --installed 'Only installed agents (managed + external), aliases and groups'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;alias'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
cand add 'Add an alias (am alias add cc claude-code)'
|
|
cand remove 'Remove an alias'
|
|
cand list 'List every alias'
|
|
}
|
|
&'am;alias;add'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;alias;remove'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;alias;list'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;secret'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
cand set 'Store a secret for an agent'
|
|
cand unset 'Remove a secret'
|
|
cand list 'List stored secret names (values are never shown)'
|
|
}
|
|
&'am;secret;set'= {
|
|
cand --agent 'Agent it belongs to'
|
|
cand --value 'Secret value (prefer --value over shell history; never logged)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;secret;unset'= {
|
|
cand --agent 'Agent it belongs to'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;secret;list'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;start'= {
|
|
cand --args 'Extra arguments passed to the agent (repeatable; quoted strings are split on spaces)'
|
|
cand --env 'Set an environment variable for the agent (repeatable): --env KEY=VALUE'
|
|
cand --profile 'Apply an environment profile (env + args, defined in the config)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -b 'Run detached in the background; output goes to the agent log file'
|
|
cand --background 'Run detached in the background; output goes to the agent log file'
|
|
cand -f 'Run in the foreground, attached to this terminal (the default)'
|
|
cand --foreground 'Run in the foreground, attached to this terminal (the default)'
|
|
cand --notify 'Send a desktop notification once the agent has started'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;stop'= {
|
|
cand --timeout 'Grace period in seconds before killing (default: from config, 5s)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --force 'Kill immediately instead of terminating gracefully'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;restart'= {
|
|
cand --args 'Extra arguments passed to the agent (repeatable; quoted strings are split on spaces)'
|
|
cand --env 'Set an environment variable for the agent (repeatable): --env KEY=VALUE'
|
|
cand --profile 'Apply an environment profile (env + args, defined in the config)'
|
|
cand --timeout 'Grace period in seconds before killing (default: from config, 5s)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -b 'Run detached in the background; output goes to the agent log file'
|
|
cand --background 'Run detached in the background; output goes to the agent log file'
|
|
cand -f 'Run in the foreground, attached to this terminal (the default)'
|
|
cand --foreground 'Run in the foreground, attached to this terminal (the default)'
|
|
cand --notify 'Send a desktop notification once the agent has started'
|
|
cand --force 'Kill immediately instead of terminating gracefully'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;status'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;sessions'= {
|
|
cand --project 'Only sessions of this project'
|
|
cand --status 'Only sessions with this status (running, stopped, failed, interrupted)'
|
|
cand --show 'Show one session in detail (summary + log excerpt)'
|
|
cand --resume 'Resume a finished session: relaunch the agent with its recorded arguments'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;stats'= {
|
|
cand --period 'Only events of the last period (7d, 30d, 90d, all)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;top'= {
|
|
cand --period 'Only events of the last period (7d, 30d, 90d, all)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;report'= {
|
|
cand --output 'Output file (default: report-YYYYMMDD.md in the state directory)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --last-week 'Cover the last 7 days'
|
|
cand --last-month 'Cover the last 30 days'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;projects'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;timeline'= {
|
|
cand --project 'Only activity of this project'
|
|
cand --since 'Only activity at or after this date (YYYY-MM-DD or RFC 3339)'
|
|
cand --limit 'Maximum number of entries (default: 50)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;log'= {
|
|
cand --kind 'Only these event kinds (comma separated: start,stop,run,install,...)'
|
|
cand --since 'Only events at or after this date (YYYY-MM-DD or RFC 3339)'
|
|
cand --limit 'Maximum number of events (default: 50)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --follow 'Follow the journal as new events arrive'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;install'= {
|
|
cand --method 'Select the install method (index, or type: npm, pip, uv, cargo, go, bun, curl, binary, git)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --force 'Reinstall even if already installed'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;uninstall'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --purge 'Also remove logs and the agent entry from the user config file'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;update'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --all 'Update every installed managed agent'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;search'= {
|
|
cand --category 'Restrict to this category'
|
|
cand --tag 'Only agents carrying this personal tag'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;history'= {
|
|
cand --kind 'Only commands of this kind (am or shell)'
|
|
cand --cwd 'Only commands run in this directory'
|
|
cand --search 'Full-text search in the command line'
|
|
cand --session 'Only commands of this session'
|
|
cand --limit 'Maximum number of entries (default: 100)'
|
|
cand --rerun 'Re-run the Nth most recent entry (with confirmation)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --failed 'Only failed commands'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;info'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;init'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --force 'Overwrite an existing agent-manager.yaml'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;help'= {
|
|
cand --find 'Search through all help commands table'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;version'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;config'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
cand show 'Print the effective (merged) configuration as YAML'
|
|
cand path 'Print the location of the configuration file(s)'
|
|
cand edit 'Open the user configuration file in your editor'
|
|
cand validate 'Validate the configuration file(s)'
|
|
cand add 'Add another agent definition file to the user configuration'
|
|
cand set 'Set one configuration key without an editor (config set settings.default_shell pwsh)'
|
|
}
|
|
&'am;config;show'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;config;path'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;config;edit'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;config;validate'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;config;add'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;config;set'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;doctor'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --fix 'Attempt to repair problems (create directories, fix the state file)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;run'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;completion'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --installed 'Add dynamic completion of the installed agents, aliases and groups (queried from ''am _agents'' at Tab time)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;self-update'= {
|
|
cand --to 'Download the new binary to this path instead of replacing the current one'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand --check 'Only check whether a newer version exists'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;self-uninstall'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help (see more with ''--help'')'
|
|
cand --help 'Print help (see more with ''--help'')'
|
|
}
|
|
&'am;export'= {
|
|
cand --output 'Output file (default: am-export.json)'
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
&'am;import'= {
|
|
cand -c 'Use an alternate configuration file'
|
|
cand --config 'Use an alternate configuration file'
|
|
cand --theme 'Color theme for the output (see ''am help theme'' for the list)'
|
|
cand -v 'Verbose output: show every command executed and its details'
|
|
cand --verbose 'Verbose output: show every command executed and its details'
|
|
cand -q 'Quiet mode: only errors are printed'
|
|
cand --quiet 'Quiet mode: only errors are printed'
|
|
cand -y 'Answer yes to every confirmation prompt'
|
|
cand --yes 'Answer yes to every confirmation prompt'
|
|
cand --dry-run 'Simulate the action without changing anything'
|
|
cand --json 'Emit machine-readable JSON on stdout (for scripts)'
|
|
cand --no-color 'Disable ANSI colors'
|
|
cand -h 'Print help'
|
|
cand --help 'Print help'
|
|
}
|
|
]
|
|
$completions[$command]
|
|
}
|