1 _lxc_get_command_list () {
2 $_comp_command1 | sed "1,/Available Commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }'
5 _lxc_get_subcommand_list () {
6 $_comp_command1 ${words[2]} | sed "1,/Available Commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }'
10 local curcontext="$curcontext" state line
18 compadd $(_lxc_get_command_list)
21 compadd $(_lxc_get_subcommand_list)