mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
bpftool: Add bash completion for token argument
This commit updates the bash completion script with the new token argument. $ bpftool token help list show Reviewed-by: Quentin Monnet <qmo@kernel.org> Signed-off-by: Tao Chen <chen.dylane@linux.dev> Link: https://lore.kernel.org/r/20250723144442.1427943-3-chen.dylane@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
b7f6400849
commit
f3af62b6ce
1 changed files with 11 additions and 0 deletions
|
|
@ -1215,6 +1215,17 @@ _bpftool()
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
token)
|
||||
case $command in
|
||||
show|list)
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
[[ $prev == $object ]] && \
|
||||
COMPREPLY=( $( compgen -W 'help show list' -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
} &&
|
||||
complete -F _bpftool bpftool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue