mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
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.
5 lines
132 B
Bash
5 lines
132 B
Bash
# -*- sh -*-
|
|
|
|
complete -A directory -o filenames test-snapd-complexion
|
|
complete -A directory -o filenames test-snapd-complexion.two
|