bpftool: Add `gen skeleton` BASH completions
Add BASH completions for gen sub-command. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Martin KaFai Lau <kafai@fb.com> Cc: Quentin Monnet <quentin.monnet@netronome.com> Link: https://lore.kernel.org/bpf/20191214014341.3442258-18-andriin@fb.com
This commit is contained in:
Родитель
197448eaac
Коммит
d9c00c3b16
|
@ -839,6 +839,17 @@ _bpftool()
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
gen)
|
||||
case $command in
|
||||
skeleton)
|
||||
_filedir
|
||||
;;
|
||||
*)
|
||||
[[ $prev == $object ]] && \
|
||||
COMPREPLY=( $( compgen -W 'skeleton help' -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
cgroup)
|
||||
case $command in
|
||||
show|list|tree)
|
||||
|
|
Загрузка…
Ссылка в новой задаче