File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
tools/bpf/bpftool/bash-completion Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -930,19 +930,24 @@ _bpftool()
930
930
format)
931
931
COMPREPLY=( $( compgen -W " c raw" -- " $cur " ) )
932
932
;;
933
+ root_id)
934
+ return 0;
935
+ ;;
933
936
c)
934
- COMPREPLY=( $( compgen -W " unsorted" -- " $cur " ) )
937
+ COMPREPLY=( $( compgen -W " unsorted root_id " -- " $cur " ) )
935
938
;;
936
939
* )
937
940
# emit extra options
938
941
case ${words[3]} in
939
942
id|file)
943
+ COMPREPLY=( $( compgen -W " root_id" -- " $cur " ) )
940
944
_bpftool_once_attr ' format'
941
945
;;
942
946
map|prog)
943
947
if [[ ${words[3]} == " map" ]] && [[ $cword == 6 ]]; then
944
948
COMPREPLY+=( $( compgen -W " key value kv all" -- " $cur " ) )
945
949
fi
950
+ COMPREPLY=( $( compgen -W " root_id" -- " $cur " ) )
946
951
_bpftool_once_attr ' format'
947
952
;;
948
953
* )
You can’t perform that action at this time.
0 commit comments