forked from luck/tmp_suning_uos_patched
bpftool: Update bash completion for "bpftool feature" command
Update bash completion for "bpftool feature" command with the new argument: "full". Signed-off-by: Michal Rostecki <mrostecki@opensuse.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/bpf/20200226165941.6379-5-mrostecki@opensuse.org
This commit is contained in:
parent
bcdacab6e7
commit
ad92b12a6e
|
@ -984,11 +984,12 @@ _bpftool()
|
||||||
probe)
|
probe)
|
||||||
[[ $prev == "prefix" ]] && return 0
|
[[ $prev == "prefix" ]] && return 0
|
||||||
if _bpftool_search_list 'macros'; then
|
if _bpftool_search_list 'macros'; then
|
||||||
COMPREPLY+=( $( compgen -W 'prefix' -- "$cur" ) )
|
_bpftool_once_attr 'prefix'
|
||||||
else
|
else
|
||||||
COMPREPLY+=( $( compgen -W 'macros' -- "$cur" ) )
|
COMPREPLY+=( $( compgen -W 'macros' -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
_bpftool_one_of_list 'kernel dev'
|
_bpftool_one_of_list 'kernel dev'
|
||||||
|
_bpftool_once_attr 'full'
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user