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
Completions for snap #4215
Completions for snap #4215
Conversation
share/completions/snap.fish
Outdated
end | ||
|
||
function __fish_snap_disabled_snaps --description 'List disabled snaps' | ||
snap list | grep disabled | cut -d ' ' -f 1 |
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'd suggest using the string
builtin here, and throughout the completion where you use grep/cut etc.
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.
Ok, switched to string
everywhere.
I ran into an issue with the |
So you mean the complete -f -c snap -n '__fish_snap_using_subcommand connect' -a '(__fish_snap_connectable_snaps):(__fish_snap_interfaces)' The two command substitutions will be combined in a cartesian product, so this should result in the correct thing. If this however results in too many candidates, you can use |
Thanks for the swift answer! |
Should be feature complete now. |
Squash merged as commit 74cac0f. Thx. |
Description
Basic completions for snap. Still need to work out quirks with couple of the commands. Putting this here for feedback.
TODOs: