Skip to content

Feature:(issue_351) Add support for generation of shell completion sc… - #1606

Merged
dearchap merged 6 commits into
urfave:mainfrom
dearchap:issue_351
Dec 11, 2022
Merged

dearchap merged 6 commits into
urfave:mainfrom
dearchap:issue_351

Conversation

@dearchap

@dearchap dearchap commented Nov 30, 2022 •

Copy link
Copy Markdown
Contributor

…ripts

What type of PR is this?

(REQUIRED)

  • cleanup
  • feature

What this PR does / why we need it:

(REQUIRED)

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #351

Special notes for your reviewer:

(fill-in or delete this section)

Testing

(fill-in or delete this section)

Add new tests

go test -run=TestCompletion

Release Notes

(REQUIRED)

EnableBashCompletion has been renamed to EnableShellCompletion. When enabled completions can be generated on the fly and sourced in current shell environment

PROG=cli-app source <(cli-app generate-completion bash)

Supported shells are bash, fish, zsh, powershell

@dearchap
dearchap requested a review from a team as a code owner November 30, 2022 14:24
Comment thread completion.go Resolved
Comment thread completion.go Resolved

@meatballhat meatballhat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yay for progress! 🎉

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.

Support for completion in other shells (fish, sh, etc.)

2 participants