-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: make fish completions work #2096
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
base: main
Are you sure you want to change the base?
Conversation
@yjp20 You dont need to make all these changes you could have done the following https://github.com/urfave/cli/blob/main/command_setup.go#L92
|
I'm pretty sure this isn't sufficient, because you have to do If you're averse to code changes, I could also change this such that the fish handler does |
Will check and get back to you |
Fixed by #2106 |
What type of PR is this?
What this PR does / why we need it:
This PR fixes a bug where
./cli completion fish
always outputsThis is because the command used to generate the completions is always the one corresponding to the
completion
command, and it needs to know the root command.Which issue(s) this PR fixes:
issue #2105
Testing
After making these changes, completions for my CLI generated successfully.
Release Notes