Skip to content

Commit

Permalink
bash: fix commands
Browse files Browse the repository at this point in the history
Signed-off-by: zhouhao <[email protected]>
  • Loading branch information
zhouhao committed Sep 29, 2017
1 parent 11703a7 commit 310bac8
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions completions/bash/oci-runtime-tool
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,6 @@ _oci-runtime-tool_generate() {
local all_options="$options_with_args $boolean_options"

case "$prev" in
--process-cap-add|--process-cap-drop)
__oci-runtime-tool_complete_capabilities
return
;;

--env|-e)
COMPREPLY=( $( compgen -e -- "$cur" ) )
__oci-runtime-tool_nospace
Expand All @@ -420,14 +415,24 @@ _oci-runtime-tool_generate() {
return
;;

--gid)
_gids
--hooks-poststart|--hooks-poststop|--hooks-prestart)
COMPREPLY=( $( compgen -W "$( __oci-runtime-tool_hooks )" -- "$cur" ) )
__oci-runtime-tool_nospace
return
;;

--groups)
COMPREPLY=( $( compgen -W "$( __oci-runtime-tool_groups )" -- "$cur" ) )
__oci-runtime-tool_nospace
--linux-rootfs-propagation)
__oci-runtime-tool_complete_propagations
return
;;

--linux-seccomp-arch)
__oci-runtime-tool_complete_seccomp_arches
return
;;

--linux-seccomp-default)
__oci-runtime-tool_complete_seccomp_actions
return
;;

Expand All @@ -436,14 +441,24 @@ _oci-runtime-tool_generate() {
return
;;

--poststart|--poststop|--prestart)
COMPREPLY=( $( compgen -W "$( __oci-runtime-tool_hooks )" -- "$cur" ) )
--process-cap-add-ambient|--process-cap-add-bounding|--process-cap-add-effective|--process-cap-add-inheritable|--process-cap-add-permitted|--process-cap-drop-ambient|--process-cap-drop-bounding|--process-cap-drop-effective|--process-cap-drop-inheritable|--process-cap-drop-permitted)
__oci-runtime-tool_complete_capabilities
return
;;

--process-gid)
_gids
return
;;

--process-groups)
COMPREPLY=( $( compgen -W "$( __oci-runtime-tool_groups )" -- "$cur" ) )
__oci-runtime-tool_nospace
return
;;

--root-propagation)
__oci-runtime-tool_complete_propagations
--process-uid)
_uids
return
;;

Expand All @@ -463,21 +478,6 @@ _oci-runtime-tool_generate() {
esac
return
;;

--seccomp-arch)
__oci-runtime-tool_complete_seccomp_arches
return
;;

--seccomp-default)
__oci-runtime-tool_complete_seccomp_actions
return
;;

--uid)
_uids
return
;;
esac

case "$cur" in
Expand Down

0 comments on commit 310bac8

Please sign in to comment.