Skip to content

Conversation

bittrance
Copy link
Contributor

@bittrance bittrance commented Apr 28, 2025

What type of PR is this?

  • bug

What this PR does / why we need it:

Reasonably, once I have entered the secret command, I should get completions on its children (unless they are secret, of course). The bash completions seems to do this.

Which issue(s) this PR fixes:

Fixes #2120 .

Testing

See issue.

Reviewer notes

This PR is based on top of #2121 and will need rebasing (or merge this one to apply both PRs at the same time). This PR only only concerns 66d871f.

Release Notes

Fish completions "inside" hidden commands now work.

Previously, completions checked against all levels of subcommands.
This change has it look only for top-level commands, which must
necessarily be present before their children. It also adds hidden
top-level commands to the list.
@bittrance bittrance requested a review from a team as a code owner April 28, 2025 20:45
@bittrance bittrance force-pushed the fish-completion-hidden-commands branch from bd55b83 to 66d871f Compare April 28, 2025 20:49
@bittrance bittrance changed the title Fish completion hidden commands Fish completion inside hidden commands Apr 28, 2025
@dearchap dearchap merged commit 8f20a35 into urfave:main Apr 29, 2025
9 checks passed
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.

v3 fish completions completion inside hidden commands don't work
2 participants