Skip to content

feat: add shell completion support#1

Open
yiftach-armis wants to merge 1 commit intomasterfrom
feat/shell-completions
Open

feat: add shell completion support#1
yiftach-armis wants to merge 1 commit intomasterfrom
feat/shell-completions

Conversation

@yiftach-armis
Copy link
Contributor

Summary

  • Install bash, zsh, and fish completions when available in release archives
  • Uses File.exist? guards for backwards compatibility with v1.0.7

Dependency

Requires armis-cli PR to be merged first - that PR adds the completions/ folder to release archives via goreleaser.

After merge + next armis-cli release

brew upgrade armis-cli
armis-cli <TAB>  # → completion, scan

Install bash, zsh, and fish completions when available in release archives.
Completions will be included starting from v1.0.8.

After installing, tab completion works automatically:
- armis-cli <TAB> → completion, scan
- armis-cli scan <TAB> → repo, image
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.

1 participant