Skip to content

chore(completions): add --version / -v to bash, zsh, fish#8

Open
oratis wants to merge 1 commit into
mainfrom
chore/completions-version-flag-7
Open

chore(completions): add --version / -v to bash, zsh, fish#8
oratis wants to merge 1 commit into
mainfrom
chore/completions-version-flag-7

Conversation

@oratis
Copy link
Copy Markdown
Owner

@oratis oratis commented May 20, 2026

Closes #7.

What

The --version / -v flag (added in 84ba4b7) was missing from the three shell completion files, so tab-complete on lisa --v⇥ returned nothing.

File --help / -h --version / -v (this PR)
`completions/lisa.bash` ✅ added to `global_flags`
`completions/_lisa` (zsh) ✅ paired `_arguments` entry under help
`completions/lisa.fish` ✅ `complete -l version -s v` line

Verified the flag itself works in dist/cli.js after rebuild:

$ lisa --version
0.2.0
$ lisa -v
0.2.0

Scope

  • Three files, +3/-1 lines
  • Pure completion-shell update, no source/behavior change
  • Each file follows its own existing idiom

🤖 Generated with Claude Code

The --version / -v flag (added in 84ba4b7) was missing from all three
shell completion files, so tab-completing on `lisa --v…` returned
nothing.

Added next to the existing --help / -h entries in each file, matching
that file's idiomatic style:
- bash: appended to global_flags string
- zsh: paired _arguments entry below (-h --help) line
- fish: complete -l version -s v line

No CLI behavior change — completion only.

Closes #7

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

completions: --version / -v missing from bash, zsh, fish

1 participant