Logo
Explore Help
Sign In
token2/snapd
0
0
Fork 0
You've already forked snapd
mirror of https://github.com/token2/snapd.git synced 2026-03-13 11:15:47 -07:00
Code Issues Packages Projects Releases Wiki Activity
Files
2.57
snapd/tests/completion/func.complete

9 lines
199 B
Plaintext
Raw Permalink Normal View History

in-snap tab completion.
2017-04-06 10:09:40 +01:00
# -*- sh -*-
_complete() {
COMPREPLY=($( compgen -W "won too tree" "${COMP_WORDS[$COMP_CWORD]}" ))
}
rename complexion to test-snapd-complexion
2017-08-29 12:21:26 +02:00
complete -F _complete test-snapd-complexion
overlord/snapstate: support completion for command aliases (#4154) This makes the code that manages command aliases aware of completion support needs. That is: on alias CRUD, also CRUD the appropriate symlinks for the completion snippets of the aliases. For example, if you have a snap foo that has an app bar, and foo.bar has a completer keyword in the yaml, then typing foo.bar <tab> in bash will offer you completion via that snippet. If you then snap alias foo.bar bar you'd expect to see the same completion suggestions. This PR hooks things up so that you would, in fact, get them. This is invisible to the snap author -- the command completer gets the original, unaliased completion request.
2017-11-14 17:14:32 +00:00
complete -F _complete test-snapd-complexion.two
Reference in New Issue Copy Permalink
Powered by Gitea Page: 531ms Template: 4ms
English
English
Licenses API