Skip to content
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

Fix bash completions in subcommands #5710

Merged
merged 3 commits into from
Jan 22, 2024
Merged

Conversation

Serock3
Copy link
Contributor

@Serock3 Serock3 commented Jan 22, 2024

Fix shell completions for subcommands.

clap_complete incorrectly used package name instead of binary name for bash, causing completions to break for subcommands. I fixed this in an upstream PR, see clap-rs/clap#5256 and clap-rs/clap#5255. The PR is now merged and included in clap_complete version 4.4.8.

Test this by building and installing the app on linux or mac, then verify completions for subcommands in a bash terminal.

Fixes DES-506


This change is Reviewable

Copy link

linear bot commented Jan 22, 2024

@Serock3 Serock3 changed the title Bash_completions Fix bash completions in subcommands Jan 22, 2024
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
:lgtm:

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@MarkusPettersson98 MarkusPettersson98 merged commit 7b48518 into main Jan 22, 2024
38 checks passed
@MarkusPettersson98 MarkusPettersson98 deleted the bash_completions branch January 22, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants