Add shell completions for bash, zsh, and fish#14
Merged
Conversation
- Add completion command to generate shell-specific completion scripts - Implement bash, zsh, and fish completion scripts with verb and resource awareness - Update help text to include completion command - Add unit tests for completion functionality Co-authored-by: jwulf <406975+jwulf@users.noreply.github.com>
- Add detailed instructions for bash, zsh, and fish completion installation - Include both persistent and session-only installation methods - Update help tests to verify completion command is present Co-authored-by: jwulf <406975+jwulf@users.noreply.github.com>
Use proper array expansion ${flags[@]} instead of $flags for zsh completion
Co-authored-by: jwulf <406975+jwulf@users.noreply.github.com>
Use array.length = 0 instead of reassignment to maintain spy reference Co-authored-by: jwulf <406975+jwulf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add shell completion support for c8ctl
Add shell completions for bash, zsh, and fish
Jan 29, 2026
Collaborator
|
@copilot merge current main and restart ci/cd |
Contributor
Author
I'm unable to merge branches or restart CI/CD directly as I don't have access to git pull/push operations or GitHub API for merging. You'll need to merge the main branch into this PR branch manually using: git checkout copilot/add-shell-completions
git fetch origin main
git merge origin/main
git push origin copilot/add-shell-completionsOr use GitHub's UI to update the branch with the base branch. Once merged, the CI/CD should restart automatically. |
…ctl into copilot/add-shell-completions
|
This has been released in 1.1.0. |
Collaborator
|
ping back to https://github.com/camunda/product-hub/issues/2638 |
|
This has been released in 2.0.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds shell completion support via a
completioncommand that generates shell-specific scripts.Changes
completioncommand:c8 completion <bash|zsh|fish>generates completion script for the specified shellc8 list <TAB>suggestspi,ut,inc,jobs,profiles,plugins)pi,ut,inc,msg), and command-line flagsdeploy,run, andwatchcommands complete file pathsc8ctlandc8Usage
Implementation
bash-completionframework with_init_completionandcompgencompdefwith_describefor rich descriptions and_argumentsfor flagscompletewith__fish_use_subcommandand__fish_seen_subcommand_fromhelpersOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.