Skip to content

Commit

Permalink
fix(ip): Complete only relevant addrlabel subcmds
Browse files Browse the repository at this point in the history
  • Loading branch information
yedayak committed Apr 3, 2024
1 parent efa663c commit 05147f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion completions/ip
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,14 @@ _comp_cmd_ip()

addrlabel)
case $subcmd in
list | add | del | flush)
add | del)
if [[ $prev == dev ]]; then
_comp_compgen_available_interfaces
else
: # TODO
fi
;;
list | flush | help) ;;
*)
((cword == subcword)) &&
_comp_compgen -- -W 'help list add del flush'
Expand Down

0 comments on commit 05147f1

Please sign in to comment.