-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add support for Zsh completion to beats subcommand #5761
Conversation
54ae988
to
536f809
Compare
536f809
to
8b90007
Compare
Just curious: is the command has to be run by the user even if the Beat is installed from a package? |
Yup in both case yes, it will generate the files required for the auto
complete same thing as the bash.
On Wed, Nov 29, 2017 at 2:38 PM Noémi Ványi ***@***.***> wrote:
Just curious: is the command has to be run by the user even if the Beat is
installed from a package?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5761 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAACgMd9NCbCJumWKpHIZfFEHNYW_VS8ks5s7bLFgaJpZM4QveHR>
.
--
ph
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is great! 🎉 related to #5617
CHANGELOG.asciidoc
Outdated
@@ -16,6 +16,9 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di | |||
|
|||
- Support dashboard loading without Elasticseach {pull}5653[5653] | |||
- Addition and update of the following libraries: pbkdf2, terminal, windows, unix {pull}5735[5735] | |||
- Update the command line library cobra {pull}X[X] | |||
- Add support for Zsh for the completion subcommand {pull}X[x] | |||
- Update the command line library cobra and add support for zsh completion {pull}5761[5761] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something went wrong here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh bad rebase on multiples commits.
8b90007
to
d282bb5
Compare
Just to keep it in mind, the cobra generator for zsh is minimal and wont handle flags for now. |
Update the cobra library and enable zsh support for completion, you can generate the completion using the following command:
Make sure the file is in your
$fpath
, you can find your currently configured path withecho $fpath
and add another one withfpath = ($fpath /my/newpath)
in your.zshrc
Note to reviewer I can split the update of the library with the Zsh if preferred.