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
data/completion: add snap
command completion for zsh
#8580
Conversation
Add completion function for snap command for zsh. Most of heavy lifting is done by go-flags and our completion helpers, this just glues everything together. Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
f02c4b5
to
060556f
Compare
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.
I installed that by hand on my system and invoked zsh.
Unlike other completers defined in the same directory, this one seems to do nothing at all.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
060556f
to
6a35b18
Compare
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.
Given that this works when invoked in a clean system I must have some customization that breaks it for me. Approving as it both looks ok on paper and works when starting from a fresh start.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
…nto bboozzoo/zsh-completion
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.
Thank you!
Add completion function for snap command for zsh. Most of heavy lifting is done by go-flags and our completion helpers, this just glues everything together.
Even though I'm a zsh user, I'm hardly an expert. However, the completion seems to work now.
I did not add anything to
Suggests
on Ubuntu on Debian. Should it be extended?I also wasn't sure about pulling in dependency on
zsh
package in Fedora and openSUSE. Seems like/usr/share/zsh/site-functions
has shared ownership, so tried to do the same in the spec.cc @Conan-Kudo