feat(cli): add bash/zsh tab completion for bin/moko #239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
With 55+ commands (and growing), users must remember exact command names or run php bin/moko list. No tab completion exists.
Proposal
Add a completion:generate command that outputs a bash/zsh completion script derived from COMMAND_MAP + plugin commands.
Usage:
Should complete:
Acceptance Criteria
Branch created:
feature/239-feat-cli-add-bash-zsh-tab-completion-forTab completion implemented in
cli/completion.php, registered ascompletioncommand.Usage:
Parses COMMAND_MAP keys via regex (no eval). Completes command names and common flags (--help, --verbose, --quiet, --dry-run, --json, --no-color, --path).