Repository navigation
fix: improve generated shell completions - #1331
Merged
Merged
Conversation
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.
Improves the scripts generated by
dprint completions <shell>.Changes
editor-info,editor-service(and its--parent-pid) and--verbosewere offered by every shell. They're now left out of the command that the completions are generated from.--config-discoverycompletes its values (true,false,ignore-descendants,global). Previously bash offered file names and the other shells offered nothing. This only affects the completions; what the flag accepts when parsing is unchanged.--linesno longer breaks the zsh spec. The colons in its value name ([file-path:]first:last[,first:last]...) weren't escaped, which ended the message early and turned the rest into a bogus completion action. They're now escaped in the completions and the flag completes file paths.--excludes,--excludes-overrideand--includes-overridecomplete file paths. zsh previously offered nothing for these.--minimum-dependency-ageno longer offers file names since it takes a duration or date.clap4.5.4 → 4.6.7 andclap_complete4.5.2 → 4.6.11, which improves the generators themselves:--incremental=and--fail-fast=completetrue/false(their optional value was previously dropped).dprint config addare tracked properly rather than picking up the completions of the top-leveladd.Tests
--config-discovery,--incrementaland--lines.Help output and argument parsing are otherwise unchanged by the upgrade.