Skip to content

Commit 5f332b0

Browse files
authored
Merge pull request #412 from Mashimiao/comple-cleanup
remove os,arch from completions
2 parents 3a7c1fb + c1b4078 commit 5f332b0

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

completions/bash/oci-runtime-tool

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,6 @@ __oci-runtime-tool_complete_propagations() {
130130
" -- "$cur" ) )
131131
}
132132

133-
# a selection of the available arches that is most likely of interest in the
134-
# context of oci-runtime-tool containers.
135-
__oci-runtime-tool_complete_arches() {
136-
COMPREPLY=( $( compgen -W "
137-
386
138-
amd64
139-
arm
140-
arm64
141-
mips
142-
mips64
143-
mips64le
144-
mipsle
145-
ppc64
146-
ppc64le
147-
s390x
148-
" -- "$cur" ) )
149-
}
150-
151133
# a selection of the available arches that is most likely of interest in the
152134
# context of oci-runtime-tool containers.
153135
__oci-runtime-tool_complete_seccomp_arches() {
@@ -302,7 +284,6 @@ _oci-runtime-tool_help() {
302284
_oci-runtime-tool_generate() {
303285
local options_with_args="
304286
--apparmor
305-
--arch
306287
--args
307288
--bind
308289
--cap-add
@@ -340,7 +321,6 @@ _oci-runtime-tool_generate() {
340321
--mount-cgroups
341322
--mount-label
342323
--oom-score-adj
343-
--os
344324
--output
345325
--poststart
346326
--poststop
@@ -385,11 +365,6 @@ _oci-runtime-tool_generate() {
385365
local all_options="$options_with_args $boolean_options"
386366

387367
case "$prev" in
388-
--arch)
389-
__oci-runtime-tool_complete_arches
390-
return
391-
;;
392-
393368
--cap-add|--cap-drop)
394369
__oci-runtime-tool_complete_capabilities
395370
return
@@ -423,11 +398,6 @@ _oci-runtime-tool_generate() {
423398
return
424399
;;
425400

426-
--os)
427-
COMPREPLY=( $( compgen -W "linux windows" -- "$cur" ) )
428-
return
429-
;;
430-
431401
--poststart|--poststop|--prestart)
432402
COMPREPLY=( $( compgen -W "$( __oci-runtime-tool_hooks )" -- "$cur" ) )
433403
__oci-runtime-tool_nospace

0 commit comments

Comments
 (0)