You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The completion tooling we use supports __complete that serves as a debugging aid. This is handy as we can then walk through all the commands with completion enabled. Here's a quick example:
for command in $(lxc __complete "" | awk '/^[^:]/ {print $1}'); do
# show all the actions
lxc __complete $command ""
# show all the flags
lxc __complete $command --
done
Here's what it looks like for real:
$ lxc __complete warning ""
acknowledge Acknowledge warning
delete Delete warning
list List warnings
show Show warning
:4
Completion ended with directive: ShellCompDirectiveNoFileComp
$ lxc __complete warning --
--debug Show all debug messages
--force-local Force using the local unix socket
--help Print help
--project Override the source project``
--quiet Don't show progress information
--sub-commands Use with help or --help to view sub-commands
--verbose Show all information messages
--version Print version number
:4
Completion ended with directive: ShellCompDirectiveNoFileComp
Having a test walking into some of those commands+actions would improve the test coverage and provide an opportunity to check for the expected completion targets for some of them. Adding them all is probably not worth the time and maintenance trouble but having a few ones would be nice.
The text was updated successfully, but these errors were encountered:
The completion tooling we use supports
__complete
that serves as a debugging aid. This is handy as we can then walk through all the commands with completion enabled. Here's a quick example:Here's what it looks like for real:
Having a test walking into some of those commands+actions would improve the test coverage and provide an opportunity to check for the expected completion targets for some of them. Adding them all is probably not worth the time and maintenance trouble but having a few ones would be nice.
The text was updated successfully, but these errors were encountered: