feat(completion): add missing flags and dynamic experimental feature detection #2532
+219
−53
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.
Improve shell completion scripts with missing flags and dynamic experimental feature support
This PR updates all shell completion scripts (Bash, Zsh, Fish, PowerShell) to include missing flags and dynamically detect experimental features.
Problem
Completion scripts were missing many flags:
-n,-x,-y,-a,-g,-j--completion,--experiments,--insecure,--nested,--no-status,--sort,--output-group-error-only--force-all,--download,--offline,--timeout,--clear-cache,--expiryCoverage before: Bash (~100% via
_parse_help), Zsh (34%), Fish (30%), PowerShell (24%)Changes
All shells:
task --experiments_task_experiment_flags()functionCoverage after: 100% for all shells
How it works
Each shell queries
task --experimentsat runtime and conditionally adds experimental flags based on enabled features.