Files
T

1615 lines
73 KiB
Plaintext

#compdef am
autoload -U is-at-least
_am() {
typeset -A opt_args
typeset -a _arguments_options
local ret=1
if is-at-least 5.2; then
_arguments_options=(-s -S -C)
else
_arguments_options=(-s -C)
fi
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_am_commands" \
"*::: :->am" \
&& ret=0
case $state in
(am)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:am-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
'--category=[Only show agents of this category]:CATEGORY:_default' \
'--sort=[Sort by name, version or status (default\: name)]:KEY:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--all[Show every agent known to the catalog, not only the installed ones]' \
'--running[Only show running agents]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(logs)
_arguments "${_arguments_options[@]}" : \
'--lines=[Number of lines to show (default\: 20)]:N:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--follow[Follow the log as it grows]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(open)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(watch)
_arguments "${_arguments_options[@]}" : \
'--interval=[Check interval in seconds (default\: 5)]:SECS:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--restart[Restart the agent automatically when it dies (with backoff)]' \
'--notify[Desktop notification on every restart]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(dashboard)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(favorite)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(unfavorite)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(note)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
'*::text -- Note text (several words are joined); empty prints the note:_default' \
&& ret=0
;;
(tag)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
'*::words -- One or more tags to add:_default' \
&& ret=0
;;
(untag)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
':tag -- Tag to remove:_default' \
&& ret=0
;;
(tags)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Only show the tags of this agent:_default' \
&& ret=0
;;
(profile)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_am__subcmd__profile_commands" \
"*::: :->profile" \
&& ret=0
case $state in
(profile)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:am-profile-command-$line[1]:"
case $line[1] in
(list)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Profile name:_default' \
&& ret=0
;;
esac
;;
esac
;;
(man)
_arguments "${_arguments_options[@]}" : \
'--output=[Write the page(s) to this directory instead of stdout]:DIR:_files' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::command -- Command name (omit for the whole CLI):_default' \
&& ret=0
;;
(_agents)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--installed[Only installed agents (managed + external), aliases and groups]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(alias)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_am__subcmd__alias_commands" \
"*::: :->alias" \
&& ret=0
case $state in
(alias)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:am-alias-command-$line[1]:"
case $line[1] in
(add)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Short name of the alias:_default' \
':target -- Agent name (or another alias) it points to:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Alias to remove:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
esac
;;
esac
;;
(secret)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_am__subcmd__secret_commands" \
"*::: :->secret" \
&& ret=0
case $state in
(secret)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:am-secret-command-$line[1]:"
case $line[1] in
(set)
_arguments "${_arguments_options[@]}" : \
'--agent=[Agent it belongs to]:AGENT:_default' \
'--value=[Secret value (prefer --value over shell history; never logged)]:VALUE:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Secret name (the environment variable name):_default' \
&& ret=0
;;
(unset)
_arguments "${_arguments_options[@]}" : \
'--agent=[Agent it belongs to]:AGENT:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':name -- Secret name:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
esac
;;
esac
;;
(start)
_arguments "${_arguments_options[@]}" : \
'*--args=[Extra arguments passed to the agent (repeatable; quoted strings are split on spaces)]::ARGS:_default' \
'*--env=[Set an environment variable for the agent (repeatable)\: --env KEY=VALUE]:KEY=VALUE:_default' \
'--profile=[Apply an environment profile (env + args, defined in the config)]:NAME:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'(-f --foreground)-b[Run detached in the background; output goes to the agent log file]' \
'(-f --foreground)--background[Run detached in the background; output goes to the agent log file]' \
'-f[Run in the foreground, attached to this terminal (the default)]' \
'--foreground[Run in the foreground, attached to this terminal (the default)]' \
'--notify[Send a desktop notification once the agent has started]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Agent name, alias, or group\:<name> (defaults to the project'\''s default agent):_default' \
&& ret=0
;;
(stop)
_arguments "${_arguments_options[@]}" : \
'--timeout=[Grace period in seconds before killing (default\: from config, 5s)]:SECS:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--force[Kill immediately instead of terminating gracefully]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name, alias, or group\:<name>:_default' \
&& ret=0
;;
(restart)
_arguments "${_arguments_options[@]}" : \
'*--args=[Extra arguments passed to the agent (repeatable; quoted strings are split on spaces)]::ARGS:_default' \
'*--env=[Set an environment variable for the agent (repeatable)\: --env KEY=VALUE]:KEY=VALUE:_default' \
'--profile=[Apply an environment profile (env + args, defined in the config)]:NAME:_default' \
'--timeout=[Grace period in seconds before killing (default\: from config, 5s)]:SECS:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'(-f --foreground)-b[Run detached in the background; output goes to the agent log file]' \
'(-f --foreground)--background[Run detached in the background; output goes to the agent log file]' \
'-f[Run in the foreground, attached to this terminal (the default)]' \
'--foreground[Run in the foreground, attached to this terminal (the default)]' \
'--notify[Send a desktop notification once the agent has started]' \
'--force[Kill immediately instead of terminating gracefully]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Agent name, alias, or group\:<name> (defaults to the project'\''s default agent):_default' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Agent name or alias (omit to show all installed agents):_default' \
&& ret=0
;;
(sessions)
_arguments "${_arguments_options[@]}" : \
'--project=[Only sessions of this project]:PROJECT:_default' \
'--status=[Only sessions with this status (running, stopped, failed, interrupted)]:STATUS:_default' \
'--show=[Show one session in detail (summary + log excerpt)]:ID:_default' \
'--resume=[Resume a finished session\: relaunch the agent with its recorded arguments]:ID:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Only sessions of this agent:_default' \
&& ret=0
;;
(stats)
_arguments "${_arguments_options[@]}" : \
'--period=[Only events of the last period (7d, 30d, 90d, all)]:PERIOD:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Agent name or alias (omit for the global view):_default' \
&& ret=0
;;
(top)
_arguments "${_arguments_options[@]}" : \
'--period=[Only events of the last period (7d, 30d, 90d, all)]:PERIOD:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(report)
_arguments "${_arguments_options[@]}" : \
'--output=[Output file (default\: report-YYYYMMDD.md in the state directory)]:FILE:_files' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'(--last-month)--last-week[Cover the last 7 days]' \
'--last-month[Cover the last 30 days]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(projects)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::name -- Project name (omit to list every project):_default' \
&& ret=0
;;
(timeline)
_arguments "${_arguments_options[@]}" : \
'--project=[Only activity of this project]:PROJECT:_default' \
'--since=[Only activity at or after this date (YYYY-MM-DD or RFC 3339)]:DATE:_default' \
'--limit=[Maximum number of entries (default\: 50)]:N:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Only activity of this agent:_default' \
&& ret=0
;;
(log)
_arguments "${_arguments_options[@]}" : \
'--kind=[Only these event kinds (comma separated\: start,stop,run,install,...)]:KINDS:_default' \
'--since=[Only events at or after this date (YYYY-MM-DD or RFC 3339)]:DATE:_default' \
'--limit=[Maximum number of events (default\: 50)]:N:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--follow[Follow the journal as new events arrive]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Only events of this agent:_default' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'--method=[Select the install method (index, or type\: npm, pip, uv, cargo, go, bun, curl, binary, git)]:METHOD:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--force[Reinstall even if already installed]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--purge[Also remove logs and the agent entry from the user config file]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--all[Update every installed managed agent]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::agent -- Agent name or alias (required unless --all):_default' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'--category=[Restrict to this category]:CATEGORY:_default' \
'--tag=[Only agents carrying this personal tag]:TAG:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::keyword -- Keyword to search for (case-insensitive substring):_default' \
&& ret=0
;;
(history)
_arguments "${_arguments_options[@]}" : \
'--kind=[Only commands of this kind (am or shell)]:KIND:_default' \
'--cwd=[Only commands run in this directory]:DIR:_default' \
'--search=[Full-text search in the command line]:TEXT:_default' \
'--session=[Only commands of this session]:ID:_default' \
'--limit=[Maximum number of entries (default\: 100)]:N:_default' \
'--rerun=[Re-run the Nth most recent entry (with confirmation)]:N:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--failed[Only failed commands]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--force[Overwrite an existing agent-manager.yaml]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
'--find=[Search through all help commands table]:TEXT:_default' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::command -- Command name (also accepts an agent name or alias); "commands" lists every command:_default' \
&& ret=0
;;
(version)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_am__subcmd__config_commands" \
"*::: :->config" \
&& ret=0
case $state in
(config)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:am-config-command-$line[1]:"
case $line[1] in
(show)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(validate)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':file -- YAML (or JSON) file defining agents to include:_files' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':key -- Dotted key path, e.g. settings.default_shell:_default' \
':value -- New value (booleans and integers keep their type):_default' \
&& ret=0
;;
esac
;;
esac
;;
(doctor)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--fix[Attempt to repair problems (create directories, fix the state file)]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':agent -- Agent name or alias:_default' \
'*::args -- Arguments passed through to the agent command:_default' \
&& ret=0
;;
(completion)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--installed[Add dynamic completion of the installed agents, aliases and groups (queried from '\''am _agents'\'' at Tab time)]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':shell -- Shell to generate completions for:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(self-update)
_arguments "${_arguments_options[@]}" : \
'--to=[Download the new binary to this path instead of replacing the current one]:FILE:_files' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'--check[Only check whether a newer version exists]' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(self-uninstall)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
'--output=[Output file (default\: am-export.json)]:FILE:_files' \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'-c+[Use an alternate configuration file]:FILE:_files' \
'--config=[Use an alternate configuration file]:FILE:_files' \
'--theme=[Color theme for the output (see '\''am help theme'\'' for the list)]:THEME:_default' \
'-v[Verbose output\: show every command executed and its details]' \
'--verbose[Verbose output\: show every command executed and its details]' \
'(-v --verbose)-q[Quiet mode\: only errors are printed]' \
'(-v --verbose)--quiet[Quiet mode\: only errors are printed]' \
'-y[Answer yes to every confirmation prompt]' \
'--yes[Answer yes to every confirmation prompt]' \
'--dry-run[Simulate the action without changing anything]' \
'--json[Emit machine-readable JSON on stdout (for scripts)]' \
'--no-color[Disable ANSI colors]' \
'-h[Print help]' \
'--help[Print help]' \
':file -- File exported by the export command:_files' \
&& ret=0
;;
esac
;;
esac
}
(( $+functions[_am_commands] )) ||
_am_commands() {
local commands; commands=(
'list:List installed agents (default); use --all for the whole catalog' \
'logs:Tail the log file of an agent (--follow for a live view)' \
'open:Open an agent'\''s installation directory in the file manager' \
'watch:Supervise an agent and optionally restart it on crash' \
'dashboard:Live TUI dashboard\: overview, activity, stats, sessions, projects' \
'favorite:Mark an agent as a favorite (star in list and status)' \
'unfavorite:Remove the favorite star from an agent' \
'note:Attach a free-form note to an agent (shown in '\''am info'\''); '\''am note <agent>'\'' without text prints the current note' \
'tag:Add a personal tag to an agent' \
'untag:Remove a personal tag from an agent' \
'tags:List personal tags (with counts), optionally for one agent' \
'profile:Manage environment profiles (dev, prod, ...)' \
'man:Generate a man page for am (or for one command)' \
'_agents:Internal\: list agent names for shell completions (hidden)' \
'alias:Manage command aliases (cc -> claude-code)' \
'secret:Manage secrets in the OS keyring (never in plaintext config)' \
'start:Start an agent (foreground by default, or detached with --background)' \
'stop:Stop a background agent (SIGTERM, then SIGKILL after the timeout)' \
'restart:Restart an agent\: stop, then start with the same options' \
'status:Show the state of one agent, or of every installed agent' \
'sessions:List the sessions of every agent (and of the interactive shell)' \
'stats:Show usage statistics computed from the event journal' \
'top:Show the most used agents (top 10)' \
'report:Write a markdown activity report' \
'projects:Show which agent works on which project' \
'timeline:One chronological view of every activity (journal + REPL history)' \
'log:Read the event journal\: everything am did' \
'install:Install an agent and its dependencies' \
'uninstall:Uninstall an agent (managed or external) and clean its files' \
'update:Update an installed agent to the latest available version' \
'search:Search the catalog by keyword (name, description, category, tags)' \
'history:Search the command history (am and shell commands)' \
'info:Show detailed information about one agent' \
'init:Generate a local agent-manager.yaml for the current directory' \
'help:Display help\: the overview, a command, the command list, or a search' \
'version:Display version and build information' \
'config:Manage the configuration file' \
'doctor:Check the environment\: tools, config validity, paths, permissions' \
'run:Run the agent command directly with the given arguments (no process management)' \
'completion:Generate a shell completion script' \
'self-update:Update agent-manager itself from GitHub Releases' \
'self-uninstall:Remove agent-manager and everything it created from this machine' \
'export:Export the configuration and installation state (backup)' \
'import:Import a previously exported configuration and state' \
)
_describe -t commands 'am commands' commands "$@"
}
(( $+functions[_am__subcmd___agents_commands] )) ||
_am__subcmd___agents_commands() {
local commands; commands=()
_describe -t commands 'am _agents commands' commands "$@"
}
(( $+functions[_am__subcmd__alias_commands] )) ||
_am__subcmd__alias_commands() {
local commands; commands=(
'add:Add an alias (am alias add cc claude-code)' \
'remove:Remove an alias' \
'list:List every alias' \
)
_describe -t commands 'am alias commands' commands "$@"
}
(( $+functions[_am__subcmd__alias__subcmd__add_commands] )) ||
_am__subcmd__alias__subcmd__add_commands() {
local commands; commands=()
_describe -t commands 'am alias add commands' commands "$@"
}
(( $+functions[_am__subcmd__alias__subcmd__list_commands] )) ||
_am__subcmd__alias__subcmd__list_commands() {
local commands; commands=()
_describe -t commands 'am alias list commands' commands "$@"
}
(( $+functions[_am__subcmd__alias__subcmd__remove_commands] )) ||
_am__subcmd__alias__subcmd__remove_commands() {
local commands; commands=()
_describe -t commands 'am alias remove commands' commands "$@"
}
(( $+functions[_am__subcmd__completion_commands] )) ||
_am__subcmd__completion_commands() {
local commands; commands=()
_describe -t commands 'am completion commands' commands "$@"
}
(( $+functions[_am__subcmd__config_commands] )) ||
_am__subcmd__config_commands() {
local commands; commands=(
'show:Print the effective (merged) configuration as YAML' \
'path:Print the location of the configuration file(s)' \
'edit:Open the user configuration file in your editor' \
'validate:Validate the configuration file(s)' \
'add:Add another agent definition file to the user configuration' \
'set:Set one configuration key without an editor (config set settings.default_shell pwsh)' \
)
_describe -t commands 'am config commands' commands "$@"
}
(( $+functions[_am__subcmd__config__subcmd__add_commands] )) ||
_am__subcmd__config__subcmd__add_commands() {
local commands; commands=()
_describe -t commands 'am config add commands' commands "$@"
}
(( $+functions[_am__subcmd__config__subcmd__edit_commands] )) ||
_am__subcmd__config__subcmd__edit_commands() {
local commands; commands=()
_describe -t commands 'am config edit commands' commands "$@"
}
(( $+functions[_am__subcmd__config__subcmd__path_commands] )) ||
_am__subcmd__config__subcmd__path_commands() {
local commands; commands=()
_describe -t commands 'am config path commands' commands "$@"
}
(( $+functions[_am__subcmd__config__subcmd__set_commands] )) ||
_am__subcmd__config__subcmd__set_commands() {
local commands; commands=()
_describe -t commands 'am config set commands' commands "$@"
}
(( $+functions[_am__subcmd__config__subcmd__show_commands] )) ||
_am__subcmd__config__subcmd__show_commands() {
local commands; commands=()
_describe -t commands 'am config show commands' commands "$@"
}
(( $+functions[_am__subcmd__config__subcmd__validate_commands] )) ||
_am__subcmd__config__subcmd__validate_commands() {
local commands; commands=()
_describe -t commands 'am config validate commands' commands "$@"
}
(( $+functions[_am__subcmd__dashboard_commands] )) ||
_am__subcmd__dashboard_commands() {
local commands; commands=()
_describe -t commands 'am dashboard commands' commands "$@"
}
(( $+functions[_am__subcmd__doctor_commands] )) ||
_am__subcmd__doctor_commands() {
local commands; commands=()
_describe -t commands 'am doctor commands' commands "$@"
}
(( $+functions[_am__subcmd__export_commands] )) ||
_am__subcmd__export_commands() {
local commands; commands=()
_describe -t commands 'am export commands' commands "$@"
}
(( $+functions[_am__subcmd__favorite_commands] )) ||
_am__subcmd__favorite_commands() {
local commands; commands=()
_describe -t commands 'am favorite commands' commands "$@"
}
(( $+functions[_am__subcmd__help_commands] )) ||
_am__subcmd__help_commands() {
local commands; commands=()
_describe -t commands 'am help commands' commands "$@"
}
(( $+functions[_am__subcmd__history_commands] )) ||
_am__subcmd__history_commands() {
local commands; commands=()
_describe -t commands 'am history commands' commands "$@"
}
(( $+functions[_am__subcmd__import_commands] )) ||
_am__subcmd__import_commands() {
local commands; commands=()
_describe -t commands 'am import commands' commands "$@"
}
(( $+functions[_am__subcmd__info_commands] )) ||
_am__subcmd__info_commands() {
local commands; commands=()
_describe -t commands 'am info commands' commands "$@"
}
(( $+functions[_am__subcmd__init_commands] )) ||
_am__subcmd__init_commands() {
local commands; commands=()
_describe -t commands 'am init commands' commands "$@"
}
(( $+functions[_am__subcmd__install_commands] )) ||
_am__subcmd__install_commands() {
local commands; commands=()
_describe -t commands 'am install commands' commands "$@"
}
(( $+functions[_am__subcmd__list_commands] )) ||
_am__subcmd__list_commands() {
local commands; commands=()
_describe -t commands 'am list commands' commands "$@"
}
(( $+functions[_am__subcmd__log_commands] )) ||
_am__subcmd__log_commands() {
local commands; commands=()
_describe -t commands 'am log commands' commands "$@"
}
(( $+functions[_am__subcmd__logs_commands] )) ||
_am__subcmd__logs_commands() {
local commands; commands=()
_describe -t commands 'am logs commands' commands "$@"
}
(( $+functions[_am__subcmd__man_commands] )) ||
_am__subcmd__man_commands() {
local commands; commands=()
_describe -t commands 'am man commands' commands "$@"
}
(( $+functions[_am__subcmd__note_commands] )) ||
_am__subcmd__note_commands() {
local commands; commands=()
_describe -t commands 'am note commands' commands "$@"
}
(( $+functions[_am__subcmd__open_commands] )) ||
_am__subcmd__open_commands() {
local commands; commands=()
_describe -t commands 'am open commands' commands "$@"
}
(( $+functions[_am__subcmd__profile_commands] )) ||
_am__subcmd__profile_commands() {
local commands; commands=(
'list:List every defined profile' \
'show:Show one profile in detail (agent, env, args)' \
)
_describe -t commands 'am profile commands' commands "$@"
}
(( $+functions[_am__subcmd__profile__subcmd__list_commands] )) ||
_am__subcmd__profile__subcmd__list_commands() {
local commands; commands=()
_describe -t commands 'am profile list commands' commands "$@"
}
(( $+functions[_am__subcmd__profile__subcmd__show_commands] )) ||
_am__subcmd__profile__subcmd__show_commands() {
local commands; commands=()
_describe -t commands 'am profile show commands' commands "$@"
}
(( $+functions[_am__subcmd__projects_commands] )) ||
_am__subcmd__projects_commands() {
local commands; commands=()
_describe -t commands 'am projects commands' commands "$@"
}
(( $+functions[_am__subcmd__report_commands] )) ||
_am__subcmd__report_commands() {
local commands; commands=()
_describe -t commands 'am report commands' commands "$@"
}
(( $+functions[_am__subcmd__restart_commands] )) ||
_am__subcmd__restart_commands() {
local commands; commands=()
_describe -t commands 'am restart commands' commands "$@"
}
(( $+functions[_am__subcmd__run_commands] )) ||
_am__subcmd__run_commands() {
local commands; commands=()
_describe -t commands 'am run commands' commands "$@"
}
(( $+functions[_am__subcmd__search_commands] )) ||
_am__subcmd__search_commands() {
local commands; commands=()
_describe -t commands 'am search commands' commands "$@"
}
(( $+functions[_am__subcmd__secret_commands] )) ||
_am__subcmd__secret_commands() {
local commands; commands=(
'set:Store a secret for an agent' \
'unset:Remove a secret' \
'list:List stored secret names (values are never shown)' \
)
_describe -t commands 'am secret commands' commands "$@"
}
(( $+functions[_am__subcmd__secret__subcmd__list_commands] )) ||
_am__subcmd__secret__subcmd__list_commands() {
local commands; commands=()
_describe -t commands 'am secret list commands' commands "$@"
}
(( $+functions[_am__subcmd__secret__subcmd__set_commands] )) ||
_am__subcmd__secret__subcmd__set_commands() {
local commands; commands=()
_describe -t commands 'am secret set commands' commands "$@"
}
(( $+functions[_am__subcmd__secret__subcmd__unset_commands] )) ||
_am__subcmd__secret__subcmd__unset_commands() {
local commands; commands=()
_describe -t commands 'am secret unset commands' commands "$@"
}
(( $+functions[_am__subcmd__self-uninstall_commands] )) ||
_am__subcmd__self-uninstall_commands() {
local commands; commands=()
_describe -t commands 'am self-uninstall commands' commands "$@"
}
(( $+functions[_am__subcmd__self-update_commands] )) ||
_am__subcmd__self-update_commands() {
local commands; commands=()
_describe -t commands 'am self-update commands' commands "$@"
}
(( $+functions[_am__subcmd__sessions_commands] )) ||
_am__subcmd__sessions_commands() {
local commands; commands=()
_describe -t commands 'am sessions commands' commands "$@"
}
(( $+functions[_am__subcmd__start_commands] )) ||
_am__subcmd__start_commands() {
local commands; commands=()
_describe -t commands 'am start commands' commands "$@"
}
(( $+functions[_am__subcmd__stats_commands] )) ||
_am__subcmd__stats_commands() {
local commands; commands=()
_describe -t commands 'am stats commands' commands "$@"
}
(( $+functions[_am__subcmd__status_commands] )) ||
_am__subcmd__status_commands() {
local commands; commands=()
_describe -t commands 'am status commands' commands "$@"
}
(( $+functions[_am__subcmd__stop_commands] )) ||
_am__subcmd__stop_commands() {
local commands; commands=()
_describe -t commands 'am stop commands' commands "$@"
}
(( $+functions[_am__subcmd__tag_commands] )) ||
_am__subcmd__tag_commands() {
local commands; commands=()
_describe -t commands 'am tag commands' commands "$@"
}
(( $+functions[_am__subcmd__tags_commands] )) ||
_am__subcmd__tags_commands() {
local commands; commands=()
_describe -t commands 'am tags commands' commands "$@"
}
(( $+functions[_am__subcmd__timeline_commands] )) ||
_am__subcmd__timeline_commands() {
local commands; commands=()
_describe -t commands 'am timeline commands' commands "$@"
}
(( $+functions[_am__subcmd__top_commands] )) ||
_am__subcmd__top_commands() {
local commands; commands=()
_describe -t commands 'am top commands' commands "$@"
}
(( $+functions[_am__subcmd__unfavorite_commands] )) ||
_am__subcmd__unfavorite_commands() {
local commands; commands=()
_describe -t commands 'am unfavorite commands' commands "$@"
}
(( $+functions[_am__subcmd__uninstall_commands] )) ||
_am__subcmd__uninstall_commands() {
local commands; commands=()
_describe -t commands 'am uninstall commands' commands "$@"
}
(( $+functions[_am__subcmd__untag_commands] )) ||
_am__subcmd__untag_commands() {
local commands; commands=()
_describe -t commands 'am untag commands' commands "$@"
}
(( $+functions[_am__subcmd__update_commands] )) ||
_am__subcmd__update_commands() {
local commands; commands=()
_describe -t commands 'am update commands' commands "$@"
}
(( $+functions[_am__subcmd__version_commands] )) ||
_am__subcmd__version_commands() {
local commands; commands=()
_describe -t commands 'am version commands' commands "$@"
}
(( $+functions[_am__subcmd__watch_commands] )) ||
_am__subcmd__watch_commands() {
local commands; commands=()
_describe -t commands 'am watch commands' commands "$@"
}
if [ "$funcstack[1]" = "_am" ]; then
_am "$@"
else
compdef _am am
fi