feat: add bash shell completions#18
Merged
renezander030 merged 1 commit intoMay 31, 2026
Merged
Conversation
Contributor
Author
|
@renezander030 Thanks for the review! I started with Bash as suggested in the issue. If this approach looks good and gets merged, I'd be happy to follow up with separate PRs for Zsh and Fish completions as well, keeping each shell implementation isolated and easy to review. |
Owner
|
Hi Aditya, merged — thanks for the clean contribution. CI was green and the test coverage is exactly right. Yes please on the separate Zsh and Fish PRs; one per shell is the right call. I've left issue #8 open to track those two. One small thing for a follow-up (not blocking anything): Rene |
This was referenced May 31, 2026
renezander030
added a commit
that referenced
this pull request
Jun 3, 2026
The pre-commit hook ran test:fast, which skips the build step, so tests ran against a stale dist/ — green-or-red on code that wasn't being committed (e.g. a stale templates command after #18-#20). The comment already claimed "build first" but nothing did. Switch to `npm test`, which rebuilds dist/ first. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merged
renezander030
added a commit
that referenced
this pull request
Jun 3, 2026
Roll up the unreleased work into 0.8.0 and backfill the missing 0.7.0 changelog section. 0.8.0 — global --dry-run (#15), restore (#16), shell completions (#18-20), track-order fix (#21), pre-commit dist rebuild (#23), docs + CONTRIBUTING. Adds CONTRIBUTING.md. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Adds a new
capcut completions bashcommand that generates a Bash completion script.This implements the Bash portion of the shell completions issue.
Features
Completes CLI subcommands
Completes global flags:
--jianying--human--quiet--versionNotes
The issue discussion mentioned leaving
--versionout until the version flag PR was merged. Since that PR has now been merged intomaster, the completion script includes--version.Testing
Documentation
Example