feat: add shell completion support for bash, zsh, and fish#66
Merged
NormallyGaussian merged 1 commit intoparallel-web:mainfrom Mar 12, 2026
Merged
Conversation
Add a `completion` command group with two subcommands: - `parallel-cli completion show` - prints the completion script to stdout - `parallel-cli completion install` - auto-installs completions to shell config Uses Click's built-in shell completion system. Supports auto-detection of the current shell from $SHELL, with --shell override for all three shells. Install is idempotent (won't add duplicates) and detects standalone binary mode (not supported for completions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
thank you! |
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
parallel-cli completioncommand group for shell tab-completion:parallel-cli completion show [--shell bash|zsh|fish]- Print the completion script to stdoutparallel-cli completion install [--shell bash|zsh|fish]- Auto-install to your shell config fileUses Click's built-in shell completion system, so completions stay in sync as commands are added. Shell is auto-detected from
$SHELLwith--shelloverride.Usage
Details
Research & Context
Project Context
Competitive Analysis
This contribution was developed with AI assistance (Claude Code).