#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[@]}" : \ '-h[Print help]' \ '--help[Print 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 (add) _arguments "${_arguments_options[@]}" : \ '(-l --local -g --global)-p+[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-l --local -g --global)--profile=[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '*--sub=[Define a subcommand alias (repeatable\: --sub short long)]:SHORT:_default:SHORT:_default' \ '(-g --global)-l[Operate on the project'\''s .aliases file]' \ '(-g --global)--local[Operate on the project'\''s .aliases file]' \ '-g[Operate on global config]' \ '--global[Operate on global config]' \ '--raw[Disable {{N}} template detection (treat command as literal)]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':name -- The alias name:_default' \ '*::command -- The command to alias:_default' \ && ret=0 ;; (remove) _arguments "${_arguments_options[@]}" : \ '(-l --local -g --global)-p+[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-l --local -g --global)--profile=[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '*--sub=[Subcommand path segments to complete the key (e.g. --sub b --sub l removes jj\:b\:l)]:SUB:_default' \ '(-g --global)-l[Operate on the project'\''s .aliases file]' \ '(-g --global)--local[Operate on the project'\''s .aliases file]' \ '-g[Operate on global config]' \ '--global[Operate on global config]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':name -- The alias name to remove:_default' \ && ret=0 ;; (ls) _arguments "${_arguments_options[@]}" : \ '-u[Show only active profiles and loaded project aliases]' \ '--used[Show only active profiles and loaded project aliases]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (la) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (status) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (profile) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ":: :_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 (add) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':name -- Profile name:_default' \ && ret=0 ;; (use) _arguments "${_arguments_options[@]}" : \ '(-i --inverse)-n+[Activate at specific priority position (1-based). Repositions if already active]:PRIORITY:_default' \ '(-i --inverse)--priority=[Activate at specific priority position (1-based). Repositions if already active]:PRIORITY:_default' \ '(-d --disable)-e[Enable given profile(s), does not toggle]' \ '(-d --disable)--enable[Enable given profile(s), does not toggle]' \ '(-e --enable)-d[Disable given profile(s), does not toggle]' \ '(-e --enable)--disable[Disable given profile(s), does not toggle]' \ '(-n --priority)-i[Reverse the processing order (first listed = highest priority)]' \ '(-n --priority)--inverse[Reverse the processing order (first listed = highest priority)]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ '*::names -- Profile names:_default' \ && ret=0 ;; (remove) _arguments "${_arguments_options[@]}" : \ '-f[Skip confirmation prompt]' \ '--force[Skip confirmation prompt]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':name -- Profile name:_default' \ && ret=0 ;; (list) _arguments "${_arguments_options[@]}" : \ '-u[Show only active profiles and loaded project aliases]' \ '--used[Show only active profiles and loaded project aliases]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (help) _arguments "${_arguments_options[@]}" : \ ":: :_am__subcmd__profile__subcmd__help_commands" \ "*::: :->help" \ && ret=0 case $state in (help) words=($line[1] "${words[@]}") (( CURRENT += 1 )) curcontext="${curcontext%:*:*}:am-profile-help-command-$line[1]:" case $line[1] in (add) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (use) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (remove) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (list) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (help) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; esac ;; esac ;; esac ;; esac ;; (var) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ":: :_am__subcmd__var_commands" \ "*::: :->var" \ && ret=0 case $state in (var) words=($line[1] "${words[@]}") (( CURRENT += 1 )) curcontext="${curcontext%:*:*}:am-var-command-$line[1]:" case $line[1] in (set) _arguments "${_arguments_options[@]}" : \ '(-l --local -g --global)-p+[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-l --local -g --global)--profile=[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-g --global)-l[Operate on the project'\''s .aliases file]' \ '(-g --global)--local[Operate on the project'\''s .aliases file]' \ '-g[Operate on global config]' \ '--global[Operate on global config]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':name -- Variable name:_default' \ ':value -- Variable value:_default' \ && ret=0 ;; (unset) _arguments "${_arguments_options[@]}" : \ '(-l --local -g --global)-p+[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-l --local -g --global)--profile=[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-g --global)-l[Operate on the project'\''s .aliases file]' \ '(-g --global)--local[Operate on the project'\''s .aliases file]' \ '-g[Operate on global config]' \ '--global[Operate on global config]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':name -- Variable name:_default' \ && ret=0 ;; (get) _arguments "${_arguments_options[@]}" : \ '(-l --local -g --global)-p+[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-l --local -g --global)--profile=[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-g --global)-l[Operate on the project'\''s .aliases file]' \ '(-g --global)--local[Operate on the project'\''s .aliases file]' \ '-g[Operate on global config]' \ '--global[Operate on global config]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':name -- Variable name:_default' \ && ret=0 ;; (list) _arguments "${_arguments_options[@]}" : \ '(-l --local -g --global)-p+[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-l --local -g --global)--profile=[Operate on a specific profile (defaults to active profile)]:PROFILE:_default' \ '(-g --global)-l[Operate on the project'\''s .aliases file]' \ '(-g --global)--local[Operate on the project'\''s .aliases file]' \ '-g[Operate on global config]' \ '--global[Operate on global config]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (help) _arguments "${_arguments_options[@]}" : \ ":: :_am__subcmd__var__subcmd__help_commands" \ "*::: :->help" \ && ret=0 case $state in (help) words=($line[1] "${words[@]}") (( CURRENT += 1 )) curcontext="${curcontext%:*:*}:am-var-help-command-$line[1]:" case $line[1] in (set) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (unset) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (get) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (list) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (help) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; esac ;; esac ;; esac ;; esac ;; (init) _arguments "${_arguments_options[@]}" : \ '-f[Force re-initialisation\: unload all previously tracked aliases (both alias and function forms) before re-loading. Use after config changes such as toggling \`use_abbr\`]' \ '--force[Force re-initialisation\: unload all previously tracked aliases (both alias and function forms) before re-loading. Use after config changes such as toggling \`use_abbr\`]' \ '-h[Print help (see more with '\''--help'\'')]' \ '--help[Print help (see more with '\''--help'\'')]' \ '-V[Print version]' \ '--version[Print version]' \ ':shell:(bash brush fish powershell zsh)' \ && ret=0 ;; (setup) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':shell:(bash brush fish powershell zsh)' \ && ret=0 ;; (use) _arguments "${_arguments_options[@]}" : \ '(-i --inverse)-n+[Activate at specific priority position (1-based). Repositions if already active]:PRIORITY:_default' \ '(-i --inverse)--priority=[Activate at specific priority position (1-based). Repositions if already active]:PRIORITY:_default' \ '(-d --disable)-e[Enable given profile(s), does not toggle]' \ '(-d --disable)--enable[Enable given profile(s), does not toggle]' \ '(-e --enable)-d[Disable given profile(s), does not toggle]' \ '(-e --enable)--disable[Disable given profile(s), does not toggle]' \ '(-n --priority)-i[Reverse the processing order (first listed = highest priority)]' \ '(-n --priority)--inverse[Reverse the processing order (first listed = highest priority)]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ '*::names -- Profile names:_default' \ && ret=0 ;; (tui) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (export) _arguments "${_arguments_options[@]}" : \ '(--all)*-p+[Operate on specific profile(s) — can be repeated]:PROFILE:_default' \ '(--all)*--profile=[Operate on specific profile(s) — can be repeated]:PROFILE:_default' \ '(--all)-l[Operate on project-local aliases]' \ '(--all)--local[Operate on project-local aliases]' \ '(--all)-g[Operate on global aliases]' \ '(--all)--global[Operate on global aliases]' \ '(-l --local -g --global -p --profile)--all[Operate on everything (global + all profiles + local)]' \ '-b[Encode output as base64]' \ '--base64[Encode output as base64]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (import) _arguments "${_arguments_options[@]}" : \ '(--all)*-p+[Operate on specific profile(s) — can be repeated]:PROFILE:_default' \ '(--all)*--profile=[Operate on specific profile(s) — can be repeated]:PROFILE:_default' \ '(--all)-l[Operate on project-local aliases]' \ '(--all)--local[Operate on project-local aliases]' \ '(--all)-g[Operate on global aliases]' \ '(--all)--global[Operate on global aliases]' \ '(-l --local -g --global -p --profile)--all[Operate on everything (global + all profiles + local)]' \ '-b[Decode base64 input before parsing]' \ '--base64[Decode base64 input before parsing]' \ '-y[Skip all confirmation prompts]' \ '--yes[Skip all confirmation prompts]' \ '--trust[DANGER\: Skip safety checks for suspicious content (escape sequences). Only use for your own exports. Never trust external input blindly — it can carry invisible escape sequences that hide malicious commands]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':source -- URL or file path to import from:_default' \ && ret=0 ;; (share) _arguments "${_arguments_options[@]}" : \ '(--all)*-p+[Operate on specific profile(s) — can be repeated]:PROFILE:_default' \ '(--all)*--profile=[Operate on specific profile(s) — can be repeated]:PROFILE:_default' \ '(--all)-l[Operate on project-local aliases]' \ '(--all)--local[Operate on project-local aliases]' \ '(--all)-g[Operate on global aliases]' \ '(--all)--global[Operate on global aliases]' \ '(-l --local -g --global -p --profile)--all[Operate on everything (global + all profiles + local)]' \ '(--paste-rs)--termbin[Generate command for termbin.com (netcat)]' \ '(--termbin)--paste-rs[Generate command for paste.rs (curl)]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (trust) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (untrust) _arguments "${_arguments_options[@]}" : \ '-f[Forget the path entirely (remove from security tracking instead of marking untrusted)]' \ '--forget[Forget the path entirely (remove from security tracking instead of marking untrusted)]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (sync) _arguments "${_arguments_options[@]}" : \ '-q[Suppress info and warning messages (still unloads/loads aliases)]' \ '--quiet[Suppress info and warning messages (still unloads/loads aliases)]' \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ ':shell:(bash brush fish powershell zsh)' \ && ret=0 ;; (__update-check) _arguments "${_arguments_options[@]}" : \ '-h[Print help]' \ '--help[Print help]' \ '-V[Print version]' \ '--version[Print version]' \ && ret=0 ;; (help) _arguments "${_arguments_options[@]}" : \ ":: :_am__subcmd__help_commands" \ "*::: :->help" \ && ret=0 case $state in (help) words=($line[1] "${words[@]}") (( CURRENT += 1 )) curcontext="${curcontext%:*:*}:am-help-command-$line[1]:" case $line[1] in (add) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (remove) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (ls) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (la) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (status) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (profile) _arguments "${_arguments_options[@]}" : \ ":: :_am__subcmd__help__subcmd__profile_commands" \ "*::: :->profile" \ && ret=0 case $state in (profile) words=($line[1] "${words[@]}") (( CURRENT += 1 )) curcontext="${curcontext%:*:*}:am-help-profile-command-$line[1]:" case $line[1] in (add) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (use) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (remove) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (list) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; esac ;; esac ;; (var) _arguments "${_arguments_options[@]}" : \ ":: :_am__subcmd__help__subcmd__var_commands" \ "*::: :->var" \ && ret=0 case $state in (var) words=($line[1] "${words[@]}") (( CURRENT += 1 )) curcontext="${curcontext%:*:*}:am-help-var-command-$line[1]:" case $line[1] in (set) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (unset) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (get) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (list) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; esac ;; esac ;; (init) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (setup) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (use) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (tui) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (export) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (import) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (share) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (trust) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (untrust) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (sync) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (__update-check) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; (help) _arguments "${_arguments_options[@]}" : \ && ret=0 ;; esac ;; esac ;; esac ;; esac } (( $+functions[_am_commands] )) || _am_commands() { local commands; commands=( 'add:Add a new alias' \ 'remove:Remove an alias' \ 'ls:List all profiles and project aliases' \ 'la:List all active profiles and project aliases' \ 'status:Check if the shell is set up correctly' \ 'profile:Manage profiles (defaults to listing when no subcommand given)' \ 'var:Manage alias variables — substituted as \`{{name}}\` in alias commands' \ 'init:Print shell init code' \ 'setup:Guided setup — adds amoxide to your shell profile' \ 'use:Shortcut for \`am profile use\` — toggle one or more profiles' \ 'tui:Launch the interactive TUI for managing aliases and profiles' \ 'export:Export aliases to stdout as TOML' \ 'import:Import aliases from a URL or file' \ 'share:Generate a share command for posting aliases to a pastebin service' \ 'trust:Review and trust the project .aliases file in the current directory' \ 'untrust:Remove trust for the project .aliases file in the current directory' \ 'sync:Internal\: compute and emit the minimal shell ops to sync the shell with the effective merged alias state (global + profile + project)' \ '__update-check:Internal\: refresh the update-check cache from crates.io. Spawned detached by the listing commands; never invoked directly by users' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'am commands' commands "$@" } (( $+functions[_am__subcmd____update-check_commands] )) || _am__subcmd____update-check_commands() { local commands; commands=() _describe -t commands 'am __update-check commands' commands "$@" } (( $+functions[_am__subcmd__add_commands] )) || _am__subcmd__add_commands() { local commands; commands=() _describe -t commands 'am add commands' commands "$@" } (( $+functions[_am__subcmd__export_commands] )) || _am__subcmd__export_commands() { local commands; commands=() _describe -t commands 'am export commands' commands "$@" } (( $+functions[_am__subcmd__help_commands] )) || _am__subcmd__help_commands() { local commands; commands=( 'add:Add a new alias' \ 'remove:Remove an alias' \ 'ls:List all profiles and project aliases' \ 'la:List all active profiles and project aliases' \ 'status:Check if the shell is set up correctly' \ 'profile:Manage profiles (defaults to listing when no subcommand given)' \ 'var:Manage alias variables — substituted as \`{{name}}\` in alias commands' \ 'init:Print shell init code' \ 'setup:Guided setup — adds amoxide to your shell profile' \ 'use:Shortcut for \`am profile use\` — toggle one or more profiles' \ 'tui:Launch the interactive TUI for managing aliases and profiles' \ 'export:Export aliases to stdout as TOML' \ 'import:Import aliases from a URL or file' \ 'share:Generate a share command for posting aliases to a pastebin service' \ 'trust:Review and trust the project .aliases file in the current directory' \ 'untrust:Remove trust for the project .aliases file in the current directory' \ 'sync:Internal\: compute and emit the minimal shell ops to sync the shell with the effective merged alias state (global + profile + project)' \ '__update-check:Internal\: refresh the update-check cache from crates.io. Spawned detached by the listing commands; never invoked directly by users' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'am help commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd____update-check_commands] )) || _am__subcmd__help__subcmd____update-check_commands() { local commands; commands=() _describe -t commands 'am help __update-check commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__add_commands] )) || _am__subcmd__help__subcmd__add_commands() { local commands; commands=() _describe -t commands 'am help add commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__export_commands] )) || _am__subcmd__help__subcmd__export_commands() { local commands; commands=() _describe -t commands 'am help export commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__help_commands] )) || _am__subcmd__help__subcmd__help_commands() { local commands; commands=() _describe -t commands 'am help help commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__import_commands] )) || _am__subcmd__help__subcmd__import_commands() { local commands; commands=() _describe -t commands 'am help import commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__init_commands] )) || _am__subcmd__help__subcmd__init_commands() { local commands; commands=() _describe -t commands 'am help init commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__la_commands] )) || _am__subcmd__help__subcmd__la_commands() { local commands; commands=() _describe -t commands 'am help la commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__ls_commands] )) || _am__subcmd__help__subcmd__ls_commands() { local commands; commands=() _describe -t commands 'am help ls commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__profile_commands] )) || _am__subcmd__help__subcmd__profile_commands() { local commands; commands=( 'add:Add a new profile' \ 'use:Toggle one or more profiles as active/inactive, optionally at a specific priority' \ 'remove:Remove a profile' \ 'list:List all profiles' \ ) _describe -t commands 'am help profile commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__profile__subcmd__add_commands] )) || _am__subcmd__help__subcmd__profile__subcmd__add_commands() { local commands; commands=() _describe -t commands 'am help profile add commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__profile__subcmd__list_commands] )) || _am__subcmd__help__subcmd__profile__subcmd__list_commands() { local commands; commands=() _describe -t commands 'am help profile list commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__profile__subcmd__remove_commands] )) || _am__subcmd__help__subcmd__profile__subcmd__remove_commands() { local commands; commands=() _describe -t commands 'am help profile remove commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__profile__subcmd__use_commands] )) || _am__subcmd__help__subcmd__profile__subcmd__use_commands() { local commands; commands=() _describe -t commands 'am help profile use commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__remove_commands] )) || _am__subcmd__help__subcmd__remove_commands() { local commands; commands=() _describe -t commands 'am help remove commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__setup_commands] )) || _am__subcmd__help__subcmd__setup_commands() { local commands; commands=() _describe -t commands 'am help setup commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__share_commands] )) || _am__subcmd__help__subcmd__share_commands() { local commands; commands=() _describe -t commands 'am help share commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__status_commands] )) || _am__subcmd__help__subcmd__status_commands() { local commands; commands=() _describe -t commands 'am help status commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__sync_commands] )) || _am__subcmd__help__subcmd__sync_commands() { local commands; commands=() _describe -t commands 'am help sync commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__trust_commands] )) || _am__subcmd__help__subcmd__trust_commands() { local commands; commands=() _describe -t commands 'am help trust commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__tui_commands] )) || _am__subcmd__help__subcmd__tui_commands() { local commands; commands=() _describe -t commands 'am help tui commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__untrust_commands] )) || _am__subcmd__help__subcmd__untrust_commands() { local commands; commands=() _describe -t commands 'am help untrust commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__use_commands] )) || _am__subcmd__help__subcmd__use_commands() { local commands; commands=() _describe -t commands 'am help use commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__var_commands] )) || _am__subcmd__help__subcmd__var_commands() { local commands; commands=( 'set:Set a variable'\''s value (upsert)' \ 'unset:Remove a variable' \ 'get:Print a variable'\''s value' \ 'list:List variables (all scopes if no flag given)' \ ) _describe -t commands 'am help var commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__var__subcmd__get_commands] )) || _am__subcmd__help__subcmd__var__subcmd__get_commands() { local commands; commands=() _describe -t commands 'am help var get commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__var__subcmd__list_commands] )) || _am__subcmd__help__subcmd__var__subcmd__list_commands() { local commands; commands=() _describe -t commands 'am help var list commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__var__subcmd__set_commands] )) || _am__subcmd__help__subcmd__var__subcmd__set_commands() { local commands; commands=() _describe -t commands 'am help var set commands' commands "$@" } (( $+functions[_am__subcmd__help__subcmd__var__subcmd__unset_commands] )) || _am__subcmd__help__subcmd__var__subcmd__unset_commands() { local commands; commands=() _describe -t commands 'am help var unset commands' commands "$@" } (( $+functions[_am__subcmd__import_commands] )) || _am__subcmd__import_commands() { local commands; commands=() _describe -t commands 'am import commands' commands "$@" } (( $+functions[_am__subcmd__init_commands] )) || _am__subcmd__init_commands() { local commands; commands=() _describe -t commands 'am init commands' commands "$@" } (( $+functions[_am__subcmd__la_commands] )) || _am__subcmd__la_commands() { local commands; commands=() _describe -t commands 'am la commands' commands "$@" } (( $+functions[_am__subcmd__ls_commands] )) || _am__subcmd__ls_commands() { local commands; commands=() _describe -t commands 'am ls commands' commands "$@" } (( $+functions[_am__subcmd__profile_commands] )) || _am__subcmd__profile_commands() { local commands; commands=( 'add:Add a new profile' \ 'use:Toggle one or more profiles as active/inactive, optionally at a specific priority' \ 'remove:Remove a profile' \ 'list:List all profiles' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'am profile commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__add_commands] )) || _am__subcmd__profile__subcmd__add_commands() { local commands; commands=() _describe -t commands 'am profile add commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__help_commands] )) || _am__subcmd__profile__subcmd__help_commands() { local commands; commands=( 'add:Add a new profile' \ 'use:Toggle one or more profiles as active/inactive, optionally at a specific priority' \ 'remove:Remove a profile' \ 'list:List all profiles' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'am profile help commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__help__subcmd__add_commands] )) || _am__subcmd__profile__subcmd__help__subcmd__add_commands() { local commands; commands=() _describe -t commands 'am profile help add commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__help__subcmd__help_commands] )) || _am__subcmd__profile__subcmd__help__subcmd__help_commands() { local commands; commands=() _describe -t commands 'am profile help help commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__help__subcmd__list_commands] )) || _am__subcmd__profile__subcmd__help__subcmd__list_commands() { local commands; commands=() _describe -t commands 'am profile help list commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__help__subcmd__remove_commands] )) || _am__subcmd__profile__subcmd__help__subcmd__remove_commands() { local commands; commands=() _describe -t commands 'am profile help remove commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__help__subcmd__use_commands] )) || _am__subcmd__profile__subcmd__help__subcmd__use_commands() { local commands; commands=() _describe -t commands 'am profile help use 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__remove_commands] )) || _am__subcmd__profile__subcmd__remove_commands() { local commands; commands=() _describe -t commands 'am profile remove commands' commands "$@" } (( $+functions[_am__subcmd__profile__subcmd__use_commands] )) || _am__subcmd__profile__subcmd__use_commands() { local commands; commands=() _describe -t commands 'am profile use commands' commands "$@" } (( $+functions[_am__subcmd__remove_commands] )) || _am__subcmd__remove_commands() { local commands; commands=() _describe -t commands 'am remove commands' commands "$@" } (( $+functions[_am__subcmd__setup_commands] )) || _am__subcmd__setup_commands() { local commands; commands=() _describe -t commands 'am setup commands' commands "$@" } (( $+functions[_am__subcmd__share_commands] )) || _am__subcmd__share_commands() { local commands; commands=() _describe -t commands 'am share commands' commands "$@" } (( $+functions[_am__subcmd__status_commands] )) || _am__subcmd__status_commands() { local commands; commands=() _describe -t commands 'am status commands' commands "$@" } (( $+functions[_am__subcmd__sync_commands] )) || _am__subcmd__sync_commands() { local commands; commands=() _describe -t commands 'am sync commands' commands "$@" } (( $+functions[_am__subcmd__trust_commands] )) || _am__subcmd__trust_commands() { local commands; commands=() _describe -t commands 'am trust commands' commands "$@" } (( $+functions[_am__subcmd__tui_commands] )) || _am__subcmd__tui_commands() { local commands; commands=() _describe -t commands 'am tui commands' commands "$@" } (( $+functions[_am__subcmd__untrust_commands] )) || _am__subcmd__untrust_commands() { local commands; commands=() _describe -t commands 'am untrust commands' commands "$@" } (( $+functions[_am__subcmd__use_commands] )) || _am__subcmd__use_commands() { local commands; commands=() _describe -t commands 'am use commands' commands "$@" } (( $+functions[_am__subcmd__var_commands] )) || _am__subcmd__var_commands() { local commands; commands=( 'set:Set a variable'\''s value (upsert)' \ 'unset:Remove a variable' \ 'get:Print a variable'\''s value' \ 'list:List variables (all scopes if no flag given)' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'am var commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__get_commands] )) || _am__subcmd__var__subcmd__get_commands() { local commands; commands=() _describe -t commands 'am var get commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__help_commands] )) || _am__subcmd__var__subcmd__help_commands() { local commands; commands=( 'set:Set a variable'\''s value (upsert)' \ 'unset:Remove a variable' \ 'get:Print a variable'\''s value' \ 'list:List variables (all scopes if no flag given)' \ 'help:Print this message or the help of the given subcommand(s)' \ ) _describe -t commands 'am var help commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__help__subcmd__get_commands] )) || _am__subcmd__var__subcmd__help__subcmd__get_commands() { local commands; commands=() _describe -t commands 'am var help get commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__help__subcmd__help_commands] )) || _am__subcmd__var__subcmd__help__subcmd__help_commands() { local commands; commands=() _describe -t commands 'am var help help commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__help__subcmd__list_commands] )) || _am__subcmd__var__subcmd__help__subcmd__list_commands() { local commands; commands=() _describe -t commands 'am var help list commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__help__subcmd__set_commands] )) || _am__subcmd__var__subcmd__help__subcmd__set_commands() { local commands; commands=() _describe -t commands 'am var help set commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__help__subcmd__unset_commands] )) || _am__subcmd__var__subcmd__help__subcmd__unset_commands() { local commands; commands=() _describe -t commands 'am var help unset commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__list_commands] )) || _am__subcmd__var__subcmd__list_commands() { local commands; commands=() _describe -t commands 'am var list commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__set_commands] )) || _am__subcmd__var__subcmd__set_commands() { local commands; commands=() _describe -t commands 'am var set commands' commands "$@" } (( $+functions[_am__subcmd__var__subcmd__unset_commands] )) || _am__subcmd__var__subcmd__unset_commands() { local commands; commands=() _describe -t commands 'am var unset commands' commands "$@" } if [ "$funcstack[1]" = "_am" ]; then _am "$@" else compdef _am am fi