fi
}
+_network_description() {
+ local words=( $@ )
+
+ local commands="edit show"
+ local cmd="$(_network_find_on_cmdline "${commands}")"
+ if [[ -z "${cmd}" ]]; then
+ COMPREPLY=( $(compgen -W "${commands}" -- "${cur}") )
+ return 0
+ fi
+}
_network_device() {
local words=( $@ )
_network_port_subcommand() {
local words=( $@ )
- local commands="color create down edit identify remove status up"
+ local commands="color create description down edit identify remove status up"
local cmd="$(_network_find_on_cmdline "${commands}")"
if [[ -z "${cmd}" ]]; then
COMPREPLY=( $(compgen -W "${commands}" -- "${cur}") )
color)
_network_color ${args}
;;
+ description)
+ _network_description ${args}
+ ;;
esac
}
local words=( $@ )
- local commands="color config disable down edit enable identify port rename status up"
+ local commands="color config description disable down edit enable identify port rename status up"
local cmd="$(_network_find_on_cmdline "${commands}")"
if [[ -z "${cmd}" ]]; then
COMPREPLY=( $(compgen -W "${commands}" -- "${cur}") )
color)
_network_color ${args}
;;
+ description)
+ _network_description ${args}
+ ;;
esac
}