#compdef wt

autoload -U is-at-least

_wt() {
    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+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_wt_commands" \
"*::: :->wt" \
&& ret=0
    case $state in
    (wt)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-command-$line[1]:"
        case $line[1] in
            (switch)
_arguments "${_arguments_options[@]}" : \
'-b+[Base branch]:BASE:_default' \
'--base=[Base branch]:BASE:_default' \
'-x+[Command to run after switch]:EXECUTE:_default' \
'--execute=[Command to run after switch]:EXECUTE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'(-c --create -b --base -x --execute --clobber)--branches[Include branches without worktrees]' \
'(-c --create -b --base -x --execute --clobber)--remotes[Include remote branches]' \
'-c[Create a new branch]' \
'--create[Create a new branch]' \
'--clobber[Remove stale paths at target]' \
'--no-cd[Skip directory change after switching]' \
'--cd[Change directory after switching]' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--no-verify[Skip hooks]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::branch -- Branch name or shortcut:_default' \
'*::execute_args -- Additional arguments for --execute command (after --):_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--format=[Output format (table, json)]:FORMAT:((table\:"Human-readable table format"
json\:"JSON output"
claude-code\:"Claude Code statusline mode (reads context from stdin)"))' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--branches[Include branches without worktrees]' \
'--remotes[Include remote branches]' \
'--full[Show CI, diff analysis, and LLM summaries]' \
'--progressive[Show fast info immediately, update with slow info]' \
'--no-progressive[Force buffered rendering]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__list_commands" \
"*::: :->list" \
&& ret=0

    case $state in
    (list)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-list-command-$line[1]:"
        case $line[1] in
            (statusline)
_arguments "${_arguments_options[@]}" : \
'--format=[Output format (table, json, claude-code)]:FORMAT:((table\:"Human-readable table format"
json\:"JSON output"
claude-code\:"Claude Code statusline mode (reads context from stdin)"))' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--claude-code[Deprecated\: use --format=claude-code]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--no-delete-branch[Keep branch after removal]' \
'-D[Delete unmerged branches]' \
'--force-delete[Delete unmerged branches]' \
'--foreground[Run removal in foreground (block until complete)]' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--no-verify[Skip hooks]' \
'-f[Force worktree removal]' \
'--force[Force worktree removal]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::branches -- Branch name \[default\: current\]:_default' \
&& ret=0
;;
(merge)
_arguments "${_arguments_options[@]}" : \
'--stage=[What to stage before committing \[default\: all\]]:STAGE:((all\:"Stage everything\: untracked files + unstaged tracked changes"
tracked\:"Stage tracked changes only (like git add -u)"
none\:"Stage nothing, commit only what'\''s already in the index"))' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--squash[Force commit squashing]' \
'--no-squash[Skip commit squashing]' \
'--commit[Force commit and squash]' \
'--no-commit[Skip commit and squash]' \
'--rebase[Force rebasing onto target]' \
'--no-rebase[Skip rebase (fail if not already rebased)]' \
'--remove[Force worktree removal after merge]' \
'--no-remove[Keep worktree after merge]' \
'--no-ff[Create a merge commit (no fast-forward)]' \
'--ff[Allow fast-forward (default)]' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--verify[Force running hooks]' \
'--no-verify[Skip hooks]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::target -- Target branch:_default' \
&& ret=0
;;
(select)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--branches[Include branches without worktrees]' \
'--remotes[Include remote branches]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(step)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__step_commands" \
"*::: :->step" \
&& ret=0

    case $state in
    (step)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-step-command-$line[1]:"
        case $line[1] in
            (commit)
_arguments "${_arguments_options[@]}" : \
'-b+[Branch to operate on (defaults to current worktree)]:BRANCH:_default' \
'--branch=[Branch to operate on (defaults to current worktree)]:BRANCH:_default' \
'--stage=[What to stage before committing \[default\: all\]]:STAGE:((all\:"Stage everything\: untracked files + unstaged tracked changes"
tracked\:"Stage tracked changes only (like git add -u)"
none\:"Stage nothing, commit only what'\''s already in the index"))' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--no-verify[Skip hooks]' \
'--show-prompt[Show prompt without running LLM]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(squash)
_arguments "${_arguments_options[@]}" : \
'--stage=[What to stage before committing \[default\: all\]]:STAGE:((all\:"Stage everything\: untracked files + unstaged tracked changes"
tracked\:"Stage tracked changes only (like git add -u)"
none\:"Stage nothing, commit only what'\''s already in the index"))' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--no-verify[Skip hooks]' \
'--show-prompt[Show prompt without running LLM]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::target -- Target branch:_default' \
&& ret=0
;;
(push)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--no-ff[Create a merge commit (no fast-forward)]' \
'--ff[Allow fast-forward (default)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::target -- Target branch:_default' \
&& ret=0
;;
(rebase)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::target -- Target branch:_default' \
&& ret=0
;;
(diff)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::target -- Target branch:_default' \
'*::extra_args -- Extra arguments forwarded to git diff:_default' \
&& ret=0
;;
(copy-ignored)
_arguments "${_arguments_options[@]}" : \
'--from=[Source worktree branch]:FROM:_default' \
'--to=[Destination worktree branch]:TO:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--dry-run[Show what would be copied]' \
'--force[Overwrite existing files in destination]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(eval)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--dry-run[Show template variables and expanded result]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':template -- Template expression to evaluate:_default' \
&& ret=0
;;
(for-each)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::args -- Command template (see --help for all variables):_default' \
&& ret=0
;;
(promote)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::branch -- Branch to promote to main worktree:_default' \
&& ret=0
;;
(prune)
_arguments "${_arguments_options[@]}" : \
'--min-age=[Skip worktrees younger than this]:MIN_AGE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--dry-run[Show what would be removed]' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--foreground[Run removal in foreground (block until complete)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(relocate)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--dry-run[Show what would be moved]' \
'--commit[Commit uncommitted changes before relocating]' \
'--clobber[Backup non-worktree paths at target locations]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::branches -- Worktrees to relocate (defaults to all mismatched):_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(hook)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__hook_commands" \
"*::: :->hook" \
&& ret=0

    case $state in
    (hook)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-hook-command-$line[1]:"
        case $line[1] in
            (show)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--expanded[Show expanded commands with current variables]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::hook_type -- Hook type to show (default\: all):(pre-switch post-switch pre-start post-start pre-commit post-commit pre-merge post-merge pre-remove post-remove)' \
&& ret=0
;;
(pre-switch)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(post-switch)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'--foreground[Run in foreground (block until complete)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(pre-start)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(post-start)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'--foreground[Run in foreground (block until complete)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(pre-commit)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(post-commit)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'--foreground[Run in foreground (block until complete)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(pre-merge)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(post-merge)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'--foreground[Run in foreground (block until complete)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(pre-remove)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(post-remove)
_arguments "${_arguments_options[@]}" : \
'*--var=[Override built-in template variable (KEY=VALUE)]:KEY=VALUE:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip approval prompts]' \
'--yes[Skip approval prompts]' \
'--dry-run[Show what would run without executing]' \
'--foreground[Run in foreground (block until complete)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Filter by command name:_default' \
&& ret=0
;;
(run-pipeline)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(approvals)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__hook__approvals_commands" \
"*::: :->approvals" \
&& ret=0

    case $state in
    (approvals)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-hook-approvals-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--all[Show all commands]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-g[Clear global approvals]' \
'--global[Clear global approvals]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(config)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config_commands" \
"*::: :->config" \
&& ret=0

    case $state in
    (config)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-command-$line[1]:"
        case $line[1] in
            (shell)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_wt__config__shell_commands" \
"*::: :->shell" \
&& ret=0

    case $state in
    (shell)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-shell-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
'--cmd=[Command name for shell integration (defaults to binary name)]:CMD:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':shell -- Shell to generate code for:(bash fish nu zsh powershell)' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'--cmd=[Command name for shell integration (defaults to binary name)]:CMD:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'--dry-run[Show what would be changed]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::shell -- Shell to install (default\: all):(bash fish nu zsh powershell)' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'--dry-run[Show what would be changed]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::shell -- Shell to uninstall (default\: all):(bash fish nu zsh powershell)' \
&& ret=0
;;
(show-theme)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':shell -- Shell to generate completions for:(bash fish nu zsh powershell)' \
&& ret=0
;;
        esac
    ;;
esac
;;
(create)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--project[Create project config (.config/wt.toml) instead of user config]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--full[Run diagnostic checks (CI tools, commit generation, version)]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(plugins)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__plugins_commands" \
"*::: :->plugins" \
&& ret=0

    case $state in
    (plugins)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-plugins-command-$line[1]:"
        case $line[1] in
            (claude)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__plugins__claude_commands" \
"*::: :->claude" \
&& ret=0

    case $state in
    (claude)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-plugins-claude-command-$line[1]:"
        case $line[1] in
            (install)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(install-statusline)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(opencode)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__plugins__opencode_commands" \
"*::: :->opencode" \
&& ret=0

    case $state in
    (opencode)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-plugins-opencode-command-$line[1]:"
        case $line[1] in
            (install)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'-y[Skip confirmation prompt]' \
'--yes[Skip confirmation prompt]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(state)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state_commands" \
"*::: :->state" \
&& ret=0

    case $state in
    (state)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-command-$line[1]:"
        case $line[1] in
            (default-branch)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state__default-branch_commands" \
"*::: :->default-branch" \
&& ret=0

    case $state in
    (default-branch)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-default-branch-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':branch -- Branch name to set as default:_default' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(previous-branch)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state__previous-branch_commands" \
"*::: :->previous-branch" \
&& ret=0

    case $state in
    (previous-branch)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-previous-branch-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':branch -- Branch name to set as previous:_default' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(ci-status)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state__ci-status_commands" \
"*::: :->ci-status" \
&& ret=0

    case $state in
    (ci-status)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-ci-status-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'(--all)--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--all[Clear all CI status cache]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(marker)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state__marker_commands" \
"*::: :->marker" \
&& ret=0

    case $state in
    (marker)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-marker-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':value -- Marker text (shown in wt list output):_default' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'(--all)--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--all[Clear all markers]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(logs)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state__logs_commands" \
"*::: :->logs" \
&& ret=0

    case $state in
    (logs)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-logs-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'--hook=[Get path for a specific log file]:HOOK:_default' \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(hints)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state__hints_commands" \
"*::: :->hints" \
&& ret=0

    case $state in
    (hints)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-hints-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Specific hint to clear (clears all if not specified):_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(vars)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_wt__config__state__vars_commands" \
"*::: :->vars" \
&& ret=0

    case $state in
    (vars)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:wt-config-state-vars-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key -- Key name:_default' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':assignment -- KEY=VALUE pair:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'--branch=[Target branch (defaults to current)]:BRANCH:_default' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'--all[Clear all keys for the branch]' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::key -- Key to clear (required unless --all):_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(get)
_arguments "${_arguments_options[@]}" : \
'--format=[Output format (table, json)]:FORMAT:((table\:"Human-readable table format"
json\:"JSON output"
claude-code\:"Claude Code statusline mode (reads context from stdin)"))' \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clear)
_arguments "${_arguments_options[@]}" : \
'-C+[Working directory for this command]:path:_files' \
'--config=[User config file path]:path:_files' \
'*-v[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'*--verbose[Verbose output (-v\: hooks, templates; -vv\: debug report)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_wt_commands] )) ||
_wt_commands() {
    local commands; commands=(
'switch:Switch to a worktree; create if needed' \
'list:List worktrees and their status' \
'remove:Remove worktree; delete branch if merged' \
'merge:Merge current branch into the target branch' \
'select:Deprecated\: use wt switch instead' \
'step:Run individual operations' \
'hook:Run configured hooks' \
'config:Manage user & project configs' \
    )
    _describe -t commands 'wt commands' commands "$@"
}
(( $+functions[_wt__config_commands] )) ||
_wt__config_commands() {
    local commands; commands=(
'shell:Shell integration setup' \
'create:Create configuration file' \
'show:Show configuration files & locations' \
'update:Update deprecated config settings' \
'plugins:Plugin management' \
'state:Manage internal data and cache' \
    )
    _describe -t commands 'wt config commands' commands "$@"
}
(( $+functions[_wt__config__create_commands] )) ||
_wt__config__create_commands() {
    local commands; commands=()
    _describe -t commands 'wt config create commands' commands "$@"
}
(( $+functions[_wt__config__plugins_commands] )) ||
_wt__config__plugins_commands() {
    local commands; commands=(
'claude:Claude Code plugin' \
'opencode:OpenCode plugin' \
    )
    _describe -t commands 'wt config plugins commands' commands "$@"
}
(( $+functions[_wt__config__plugins__claude_commands] )) ||
_wt__config__plugins__claude_commands() {
    local commands; commands=(
'install:Install the Worktrunk plugin' \
'uninstall:Remove the Worktrunk plugin' \
'install-statusline:Configure the Claude Code statusline' \
    )
    _describe -t commands 'wt config plugins claude commands' commands "$@"
}
(( $+functions[_wt__config__plugins__claude__install_commands] )) ||
_wt__config__plugins__claude__install_commands() {
    local commands; commands=()
    _describe -t commands 'wt config plugins claude install commands' commands "$@"
}
(( $+functions[_wt__config__plugins__claude__install-statusline_commands] )) ||
_wt__config__plugins__claude__install-statusline_commands() {
    local commands; commands=()
    _describe -t commands 'wt config plugins claude install-statusline commands' commands "$@"
}
(( $+functions[_wt__config__plugins__claude__uninstall_commands] )) ||
_wt__config__plugins__claude__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'wt config plugins claude uninstall commands' commands "$@"
}
(( $+functions[_wt__config__plugins__opencode_commands] )) ||
_wt__config__plugins__opencode_commands() {
    local commands; commands=(
'install:Install the activity tracking plugin' \
'uninstall:Remove the activity tracking plugin' \
    )
    _describe -t commands 'wt config plugins opencode commands' commands "$@"
}
(( $+functions[_wt__config__plugins__opencode__install_commands] )) ||
_wt__config__plugins__opencode__install_commands() {
    local commands; commands=()
    _describe -t commands 'wt config plugins opencode install commands' commands "$@"
}
(( $+functions[_wt__config__plugins__opencode__uninstall_commands] )) ||
_wt__config__plugins__opencode__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'wt config plugins opencode uninstall commands' commands "$@"
}
(( $+functions[_wt__config__shell_commands] )) ||
_wt__config__shell_commands() {
    local commands; commands=(
'init:Generate shell integration code' \
'install:Write shell integration to config files' \
'uninstall:Remove shell integration from config files' \
'show-theme:Show output theme samples' \
'completions:Generate static shell completions for package managers' \
    )
    _describe -t commands 'wt config shell commands' commands "$@"
}
(( $+functions[_wt__config__shell__completions_commands] )) ||
_wt__config__shell__completions_commands() {
    local commands; commands=()
    _describe -t commands 'wt config shell completions commands' commands "$@"
}
(( $+functions[_wt__config__shell__init_commands] )) ||
_wt__config__shell__init_commands() {
    local commands; commands=()
    _describe -t commands 'wt config shell init commands' commands "$@"
}
(( $+functions[_wt__config__shell__install_commands] )) ||
_wt__config__shell__install_commands() {
    local commands; commands=()
    _describe -t commands 'wt config shell install commands' commands "$@"
}
(( $+functions[_wt__config__shell__show-theme_commands] )) ||
_wt__config__shell__show-theme_commands() {
    local commands; commands=()
    _describe -t commands 'wt config shell show-theme commands' commands "$@"
}
(( $+functions[_wt__config__shell__uninstall_commands] )) ||
_wt__config__shell__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'wt config shell uninstall commands' commands "$@"
}
(( $+functions[_wt__config__show_commands] )) ||
_wt__config__show_commands() {
    local commands; commands=()
    _describe -t commands 'wt config show commands' commands "$@"
}
(( $+functions[_wt__config__state_commands] )) ||
_wt__config__state_commands() {
    local commands; commands=(
'default-branch:Default branch detection and override' \
'previous-branch:Previous branch (for wt switch -)' \
'ci-status:CI status cache' \
'marker:Branch markers' \
'logs:Background operation logs' \
'hints:One-time hints shown in this repo' \
'vars:\[experimental\] Custom variables per branch' \
'get:Get all stored state' \
'clear:Clear all stored state' \
    )
    _describe -t commands 'wt config state commands' commands "$@"
}
(( $+functions[_wt__config__state__ci-status_commands] )) ||
_wt__config__state__ci-status_commands() {
    local commands; commands=(
'get:Get CI status for a branch' \
'clear:Clear CI status cache' \
    )
    _describe -t commands 'wt config state ci-status commands' commands "$@"
}
(( $+functions[_wt__config__state__ci-status__clear_commands] )) ||
_wt__config__state__ci-status__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state ci-status clear commands' commands "$@"
}
(( $+functions[_wt__config__state__ci-status__get_commands] )) ||
_wt__config__state__ci-status__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state ci-status get commands' commands "$@"
}
(( $+functions[_wt__config__state__clear_commands] )) ||
_wt__config__state__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state clear commands' commands "$@"
}
(( $+functions[_wt__config__state__default-branch_commands] )) ||
_wt__config__state__default-branch_commands() {
    local commands; commands=(
'get:Get the default branch' \
'set:Set the default branch' \
'clear:Clear the default branch cache' \
    )
    _describe -t commands 'wt config state default-branch commands' commands "$@"
}
(( $+functions[_wt__config__state__default-branch__clear_commands] )) ||
_wt__config__state__default-branch__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state default-branch clear commands' commands "$@"
}
(( $+functions[_wt__config__state__default-branch__get_commands] )) ||
_wt__config__state__default-branch__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state default-branch get commands' commands "$@"
}
(( $+functions[_wt__config__state__default-branch__set_commands] )) ||
_wt__config__state__default-branch__set_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state default-branch set commands' commands "$@"
}
(( $+functions[_wt__config__state__get_commands] )) ||
_wt__config__state__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state get commands' commands "$@"
}
(( $+functions[_wt__config__state__hints_commands] )) ||
_wt__config__state__hints_commands() {
    local commands; commands=(
'get:List hints that have been shown' \
'clear:Clear hints (re-show on next trigger)' \
    )
    _describe -t commands 'wt config state hints commands' commands "$@"
}
(( $+functions[_wt__config__state__hints__clear_commands] )) ||
_wt__config__state__hints__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state hints clear commands' commands "$@"
}
(( $+functions[_wt__config__state__hints__get_commands] )) ||
_wt__config__state__hints__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state hints get commands' commands "$@"
}
(( $+functions[_wt__config__state__logs_commands] )) ||
_wt__config__state__logs_commands() {
    local commands; commands=(
'get:Get log file paths' \
'clear:Clear background operation logs' \
    )
    _describe -t commands 'wt config state logs commands' commands "$@"
}
(( $+functions[_wt__config__state__logs__clear_commands] )) ||
_wt__config__state__logs__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state logs clear commands' commands "$@"
}
(( $+functions[_wt__config__state__logs__get_commands] )) ||
_wt__config__state__logs__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state logs get commands' commands "$@"
}
(( $+functions[_wt__config__state__marker_commands] )) ||
_wt__config__state__marker_commands() {
    local commands; commands=(
'get:Get marker for a branch' \
'set:Set marker for a branch' \
'clear:Clear marker for a branch' \
    )
    _describe -t commands 'wt config state marker commands' commands "$@"
}
(( $+functions[_wt__config__state__marker__clear_commands] )) ||
_wt__config__state__marker__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state marker clear commands' commands "$@"
}
(( $+functions[_wt__config__state__marker__get_commands] )) ||
_wt__config__state__marker__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state marker get commands' commands "$@"
}
(( $+functions[_wt__config__state__marker__set_commands] )) ||
_wt__config__state__marker__set_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state marker set commands' commands "$@"
}
(( $+functions[_wt__config__state__previous-branch_commands] )) ||
_wt__config__state__previous-branch_commands() {
    local commands; commands=(
'get:Get the previous branch' \
'set:Set the previous branch' \
'clear:Clear the previous branch' \
    )
    _describe -t commands 'wt config state previous-branch commands' commands "$@"
}
(( $+functions[_wt__config__state__previous-branch__clear_commands] )) ||
_wt__config__state__previous-branch__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state previous-branch clear commands' commands "$@"
}
(( $+functions[_wt__config__state__previous-branch__get_commands] )) ||
_wt__config__state__previous-branch__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state previous-branch get commands' commands "$@"
}
(( $+functions[_wt__config__state__previous-branch__set_commands] )) ||
_wt__config__state__previous-branch__set_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state previous-branch set commands' commands "$@"
}
(( $+functions[_wt__config__state__vars_commands] )) ||
_wt__config__state__vars_commands() {
    local commands; commands=(
'get:Get a value' \
'set:Set a value' \
'list:List all keys' \
'clear:Clear a key or all keys' \
    )
    _describe -t commands 'wt config state vars commands' commands "$@"
}
(( $+functions[_wt__config__state__vars__clear_commands] )) ||
_wt__config__state__vars__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state vars clear commands' commands "$@"
}
(( $+functions[_wt__config__state__vars__get_commands] )) ||
_wt__config__state__vars__get_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state vars get commands' commands "$@"
}
(( $+functions[_wt__config__state__vars__list_commands] )) ||
_wt__config__state__vars__list_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state vars list commands' commands "$@"
}
(( $+functions[_wt__config__state__vars__set_commands] )) ||
_wt__config__state__vars__set_commands() {
    local commands; commands=()
    _describe -t commands 'wt config state vars set commands' commands "$@"
}
(( $+functions[_wt__config__update_commands] )) ||
_wt__config__update_commands() {
    local commands; commands=()
    _describe -t commands 'wt config update commands' commands "$@"
}
(( $+functions[_wt__hook_commands] )) ||
_wt__hook_commands() {
    local commands; commands=(
'show:Show configured hooks' \
'pre-switch:Run pre-switch hooks' \
'post-switch:Run post-switch hooks' \
'pre-start:Run pre-start hooks' \
'post-start:Run post-start hooks' \
'pre-commit:Run pre-commit hooks' \
'post-commit:Run post-commit hooks' \
'pre-merge:Run pre-merge hooks' \
'post-merge:Run post-merge hooks' \
'pre-remove:Run pre-remove hooks' \
'post-remove:Run post-remove hooks' \
'run-pipeline:Internal\: run a serialized pipeline from stdin' \
'approvals:Manage command approvals' \
    )
    _describe -t commands 'wt hook commands' commands "$@"
}
(( $+functions[_wt__hook__approvals_commands] )) ||
_wt__hook__approvals_commands() {
    local commands; commands=(
'add:Store approvals in approvals.toml' \
'clear:Clear approved commands from approvals.toml' \
    )
    _describe -t commands 'wt hook approvals commands' commands "$@"
}
(( $+functions[_wt__hook__approvals__add_commands] )) ||
_wt__hook__approvals__add_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook approvals add commands' commands "$@"
}
(( $+functions[_wt__hook__approvals__clear_commands] )) ||
_wt__hook__approvals__clear_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook approvals clear commands' commands "$@"
}
(( $+functions[_wt__hook__post-commit_commands] )) ||
_wt__hook__post-commit_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook post-commit commands' commands "$@"
}
(( $+functions[_wt__hook__post-merge_commands] )) ||
_wt__hook__post-merge_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook post-merge commands' commands "$@"
}
(( $+functions[_wt__hook__post-remove_commands] )) ||
_wt__hook__post-remove_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook post-remove commands' commands "$@"
}
(( $+functions[_wt__hook__post-start_commands] )) ||
_wt__hook__post-start_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook post-start commands' commands "$@"
}
(( $+functions[_wt__hook__post-switch_commands] )) ||
_wt__hook__post-switch_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook post-switch commands' commands "$@"
}
(( $+functions[_wt__hook__pre-commit_commands] )) ||
_wt__hook__pre-commit_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook pre-commit commands' commands "$@"
}
(( $+functions[_wt__hook__pre-merge_commands] )) ||
_wt__hook__pre-merge_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook pre-merge commands' commands "$@"
}
(( $+functions[_wt__hook__pre-remove_commands] )) ||
_wt__hook__pre-remove_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook pre-remove commands' commands "$@"
}
(( $+functions[_wt__hook__pre-start_commands] )) ||
_wt__hook__pre-start_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook pre-start commands' commands "$@"
}
(( $+functions[_wt__hook__pre-switch_commands] )) ||
_wt__hook__pre-switch_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook pre-switch commands' commands "$@"
}
(( $+functions[_wt__hook__run-pipeline_commands] )) ||
_wt__hook__run-pipeline_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook run-pipeline commands' commands "$@"
}
(( $+functions[_wt__hook__show_commands] )) ||
_wt__hook__show_commands() {
    local commands; commands=()
    _describe -t commands 'wt hook show commands' commands "$@"
}
(( $+functions[_wt__list_commands] )) ||
_wt__list_commands() {
    local commands; commands=(
'statusline:Single-line status for shell prompts' \
    )
    _describe -t commands 'wt list commands' commands "$@"
}
(( $+functions[_wt__list__statusline_commands] )) ||
_wt__list__statusline_commands() {
    local commands; commands=()
    _describe -t commands 'wt list statusline commands' commands "$@"
}
(( $+functions[_wt__merge_commands] )) ||
_wt__merge_commands() {
    local commands; commands=()
    _describe -t commands 'wt merge commands' commands "$@"
}
(( $+functions[_wt__remove_commands] )) ||
_wt__remove_commands() {
    local commands; commands=()
    _describe -t commands 'wt remove commands' commands "$@"
}
(( $+functions[_wt__select_commands] )) ||
_wt__select_commands() {
    local commands; commands=()
    _describe -t commands 'wt select commands' commands "$@"
}
(( $+functions[_wt__step_commands] )) ||
_wt__step_commands() {
    local commands; commands=(
'commit:Stage and commit with LLM-generated message' \
'squash:Squash commits since branching' \
'push:Fast-forward target to current branch' \
'rebase:Rebase onto target' \
'diff:Show all changes since branching' \
'copy-ignored:Copy gitignored files to another worktree' \
'eval:\[experimental\] Evaluate a template expression' \
'for-each:\[experimental\] Run command in each worktree' \
'promote:\[experimental\] Swap a branch into the main worktree' \
'prune:\[experimental\] Remove worktrees merged into the default branch' \
'relocate:\[experimental\] Move worktrees to expected paths' \
    )
    _describe -t commands 'wt step commands' commands "$@"
}
(( $+functions[_wt__step__commit_commands] )) ||
_wt__step__commit_commands() {
    local commands; commands=()
    _describe -t commands 'wt step commit commands' commands "$@"
}
(( $+functions[_wt__step__copy-ignored_commands] )) ||
_wt__step__copy-ignored_commands() {
    local commands; commands=()
    _describe -t commands 'wt step copy-ignored commands' commands "$@"
}
(( $+functions[_wt__step__diff_commands] )) ||
_wt__step__diff_commands() {
    local commands; commands=()
    _describe -t commands 'wt step diff commands' commands "$@"
}
(( $+functions[_wt__step__eval_commands] )) ||
_wt__step__eval_commands() {
    local commands; commands=()
    _describe -t commands 'wt step eval commands' commands "$@"
}
(( $+functions[_wt__step__for-each_commands] )) ||
_wt__step__for-each_commands() {
    local commands; commands=()
    _describe -t commands 'wt step for-each commands' commands "$@"
}
(( $+functions[_wt__step__promote_commands] )) ||
_wt__step__promote_commands() {
    local commands; commands=()
    _describe -t commands 'wt step promote commands' commands "$@"
}
(( $+functions[_wt__step__prune_commands] )) ||
_wt__step__prune_commands() {
    local commands; commands=()
    _describe -t commands 'wt step prune commands' commands "$@"
}
(( $+functions[_wt__step__push_commands] )) ||
_wt__step__push_commands() {
    local commands; commands=()
    _describe -t commands 'wt step push commands' commands "$@"
}
(( $+functions[_wt__step__rebase_commands] )) ||
_wt__step__rebase_commands() {
    local commands; commands=()
    _describe -t commands 'wt step rebase commands' commands "$@"
}
(( $+functions[_wt__step__relocate_commands] )) ||
_wt__step__relocate_commands() {
    local commands; commands=()
    _describe -t commands 'wt step relocate commands' commands "$@"
}
(( $+functions[_wt__step__squash_commands] )) ||
_wt__step__squash_commands() {
    local commands; commands=()
    _describe -t commands 'wt step squash commands' commands "$@"
}
(( $+functions[_wt__switch_commands] )) ||
_wt__switch_commands() {
    local commands; commands=()
    _describe -t commands 'wt switch commands' commands "$@"
}

if [ "$funcstack[1]" = "_wt" ]; then
    _wt "$@"
else
    compdef _wt wt
fi
