Skip to content

Commit

Permalink
feat(ip): Complete link afstats command
Browse files Browse the repository at this point in the history
  • Loading branch information
yedayak authored and scop committed Apr 29, 2024
1 parent d58ea76 commit 6721346
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion completions/ip
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ _comp_cmd_ip()
add)
# TODO
;;
afstats)
if [[ $prev == dev ]]; then
_comp_compgen_available_interfaces
else
_comp_compgen -- -W 'dev'
fi
;;
delete)
if [[ $prev == type ]]; then
_comp_cmd_ip__link_types "$1"
Expand Down Expand Up @@ -173,7 +180,7 @@ _comp_cmd_ip()
;;
*)
((cword == subcword)) &&
_comp_compgen -- -W 'help add delete set show property'
_comp_compgen -- -W 'help add delete set show property afstats'
;;
esac
;;
Expand Down

0 comments on commit 6721346

Please sign in to comment.