Add shell completions for bash and zsh #298

Closed
YakoYakoYokuYoku wants to merge 1 commits from YakoYakoYokuYoku:shcompl into main
Contributor

Fixes #86.
Took the bash script from the github.com/urfave/cli repository and derived a zsh script from it.
Tested both bash and zsh with success.

Fixes #86. Took the bash script from the [github.com/urfave/cli](https://github.com/urfave/cli/blob/master/docs/v2/manual.md#bash-completion) repository and derived a zsh script from it. Tested both bash and zsh with success.
YakoYakoYokuYoku added 1 commit 2020-12-14 14:28:43 +00:00
Add bash and zsh shell completions
All checks were successful
continuous-integration/drone/pr Build is passing
7e0ee1ea4b
6543 added this to the v0.7.0 milestone 2020-12-14 14:35:29 +00:00
6543 added the
kind
enhancement
label 2020-12-14 14:35:39 +00:00
Member

Thanks! Can you document how to use it in README?
What's the difference between your adaption and the source from urfave/cli?

edit: i get it, you derived the zsh version from the bash version. urface/cli actually provides zsh and powershell helpers as well..

Thanks! Can you document how to use it in README? What's the difference between your adaption and the source from urfave/cli? edit: i get it, you derived the zsh version from the bash version. urface/cli actually provides zsh and powershell helpers as well..
6543 reviewed 2020-12-14 15:25:31 +00:00
Dismissed
@ -0,0 +1,18 @@
#compdef _tea tea
Owner

I think we should include the official script https://github.com/urfave/cli/blob/master/autocomplete/zsh_autocomplete

I think we should include the official script https://github.com/urfave/cli/blob/master/autocomplete/zsh_autocomplete
Owner

How about to add a subcommand tea autocomplete to set up this automatically?

How about to add a subcommand `tea autocomplete` to set up this automatically?
Member
@lunny #299
Author
Contributor

Closing in favor of #299. A much more complete option IMO.

Closing in favor of #299. A much more complete option IMO.
YakoYakoYokuYoku closed this pull request 2020-12-14 16:01:23 +00:00
6543 removed this from the v0.7.0 milestone 2020-12-16 17:19:32 +00:00
Some checks are pending
continuous-integration/drone/pr Build is passing
check-and-test / check-and-test (pull_request)
Required

Pull request closed

Sign in to join this conversation.
No description provided.