-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commands for generating shell completion scripts + statically-generated bash script #42416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
a6d22de
Spike out initial completion script emit commands
baronfel bbc0196
Update contents to include locations and commented instructions whereβ¦
baronfel d9fca03
Complete rewrite to support dynamic completions
baronfel 965f78a
Refactor to make certain scary portions of the generation have nicer β¦
baronfel a862bbd
Enhancement: do not emit completions for option arguments for flag-stβ¦
baronfel 0008709
Optimize static completions for bash: don't emit option completions fβ¦
baronfel 19de5cd
Completion optimization - don't emit option handler stanzas if they aβ¦
baronfel 1bed02b
Completion optimization: mark several flag-style commands as Arity zeβ¦
baronfel 63078e9
Completions optimization: mark many flag-style options as Arity Zero
baronfel c8f5d30
Fix accidental zero-arity arguments in tool install and restore
baronfel d96cab8
update baselines for new completions command
baronfel 4074cbd
strip odd help option aliases, suggest only best option name, and ensβ¦
baronfel 9ceeaa9
Add tests for shell completion helpers
baronfel 8cc761b
WIP test placeholders
baronfel 273f96b
Rename for consistency
baronfel 0ed9b30
Initial powershell static completions provider
baronfel 836a845
Powershell: Generate dynamic completion lists for arguments where posβ¦
baronfel c2dc712
Extract out implementation to separate project to potentially ship asβ¦
baronfel 9499489
Initial basic snapshot tests for bash and pwsh
baronfel 2cfe437
Minor test framework refactor
baronfel 904a3a2
Working zsh completions (including testing on dotnet)
baronfel 6183d8d
ZSH: fix completions for static argument completions with descriptions
baronfel 7d8df2e
Zsh: support for dynamic completions of options and arguments
baronfel 7547923
Code review fixes and renames from @Forgind
baronfel 635aec6
Remove unused option to minimize diff
baronfel 5815c78
Fix two logical test failures
baronfel 0e9d2f4
Remove unnecessary arity and hidden flags from arguments where that mβ¦
baronfel 4592a02
Update Verify packages to hopefully get around some initialization siβ¦
baronfel fa01dc9
Try to work around Verify directory usage in CI
baronfel 8aabe7a
Minor rename to align type name with file name
baronfel d8e9388
Add dotnet CLI generate script approval tests to the CLI-level tests
baronfel 0f483ad
Try to be even more explicit
baronfel 4fee78c
Apply bash env change from @am11 and update snapshots
baronfel ad46fab
try to fix errant path computation in tests
baronfel c38887b
make the completions command re-nameable
baronfel a3866e4
update verify extensions to forward sourceFile paths
baronfel 5745044
Remove DerivePathInfo in tests
baronfel a9b1ef2
try to debug directory creations
baronfel 9246158
even more diagnostics
baronfel e2aae95
try another way of finding paths?
baronfel bb41b58
fix XMLdoc tags to green up the builds
baronfel 00429e5
re-set DervicePathInfo
baronfel ad86f88
remove unused code
baronfel 4500f4d
update .NET CLI snapshot tests similarly to standlone tests
baronfel 0337801
Updates to snapshots for new dotnet nuget why documentation
baronfel 7d1f13a
Unify newline handling in powershell for very long descriptions
baronfel e649e97
Make local builds use nicer Verify diff compares
baronfel c33ee44
Add localizations for the new strings in the completion and generatioβ¦
baronfel fd64dc2
Remove CI-detection codepaths in favor of DiffEngine's detection
baronfel 161cc80
Better help descriptions and guidance for the powershell script provider
baronfel 6171580
Generate better completions for the shell arguments
baronfel 21183dd
Update the PowershellShellProvider to use @MiYanni's code and update β¦
baronfel ed98f1d
Try this detection instead
baronfel b2d326b
Update completions for underlying changes from main
baronfel 01c2f04
Get some test-level output logging about runtime state
baronfel 0b45974
dump logs to see why my checks aren't working
baronfel 5c0ee47
Yield to the borg and onboard to the helix test infra
baronfel 474ba26
try to detect helix
baronfel b5d51f2
always copy snapshot contents to output directory
baronfel f9428c6
try to make the scripts not end up in packages?
baronfel ec777a4
Update assertions due to work merged into main
baronfel e7f9e7b
Update src/System.CommandLine.StaticCompletions/Resources/Strings.resx
baronfel 85366c3
add missing translations
baronfel 40778da
Add some diagnostics for the standalone completions tests
baronfel 1692a60
fix casing on ps1 script after string change
baronfel 28b9ca4
try this way of detecting CI stuff
baronfel 571db7c
try more helix detection
baronfel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.