Skip to content

Commit 6721346

Browse files
yedayakscop
authored andcommitted
feat(ip): Complete link afstats command
1 parent d58ea76 commit 6721346

File tree

1 file changed

+8
-1
lines changed
  • completions

1 file changed

+8
-1
lines changed

completions/ip

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ _comp_cmd_ip()
121121
add)
122122
# TODO
123123
;;
124+
afstats)
125+
if [[ $prev == dev ]]; then
126+
_comp_compgen_available_interfaces
127+
else
128+
_comp_compgen -- -W 'dev'
129+
fi
130+
;;
124131
delete)
125132
if [[ $prev == type ]]; then
126133
_comp_cmd_ip__link_types "$1"
@@ -173,7 +180,7 @@ _comp_cmd_ip()
173180
;;
174181
*)
175182
((cword == subcword)) &&
176-
_comp_compgen -- -W 'help add delete set show property'
183+
_comp_compgen -- -W 'help add delete set show property afstats'
177184
;;
178185
esac
179186
;;

0 commit comments

Comments
 (0)