summaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-12-13 17:43:41 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-12-15 15:58:06 -0800
commitd9c00c3b1639a3c8f46663cc042a3768d222021f (patch)
tree043cb5b03d9de79c156a338750e434077f147e1e /tools/bpf/bpftool
parent197448eaac1ab330fb485769bccb62346ba1f458 (diff)
downloadlinux-stable-d9c00c3b1639a3c8f46663cc042a3768d222021f.tar.gz
linux-stable-d9c00c3b1639a3c8f46663cc042a3768d222021f.tar.bz2
linux-stable-d9c00c3b1639a3c8f46663cc042a3768d222021f.zip
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
Diffstat (limited to 'tools/bpf/bpftool')
-rw-r--r--tools/bpf/bpftool/bash-completion/bpftool11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool
index 21c676a1eeb1..754d8395e451 100644
--- a/tools/bpf/bpftool/bash-completion/bpftool
+++ b/tools/bpf/bpftool/bash-completion/bpftool
@@ -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)