Closed Toalaah closed 1 month ago
Hi @Toalaah! Thank you very much for the contribution :)
@meatballhat @Juneezee What should be done when codecov fails, like in this PR?
@meatballhat @Juneezee What should be done when codecov fails, like in this PR?
@bartekpacia I think the simplest way would be adding a test case for zsh
in TestDefaultCompleteWithFlags
https://github.com/urfave/cli/blob/043b774d0f2c64d2ed4e22e87c2f6ec54bfcb30b/help_test.go#L1079-L1083
Thanks for the hint, added some zsh-specific test cases. Looks like codecov is no longer complaining.
Thanks a lot :-)
What type of PR is this?
What this PR does / why we need it:
This PR ensures that flags'
Usage
fields are included when using zsh completion (if their description is non-empty). This functionality is in line with how this is handled for command completion, see https://github.com/urfave/cli/blob/043b774d0f2c64d2ed4e22e87c2f6ec54bfcb30b/help.go#L163Without Changes
With changes
Testing
I tested these changes locally against a CLI tool that I am migrating to urfave/cli/v3. I also ran
make test
and encountered no errors, but then again I also did not add any test cases (would be open to doing so if this feature is desired).Release Notes