summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2018-11-21 15:37:11 +0000
committerAdrian Reber <adrian@lisas.de>2018-11-28 08:00:38 +0100
commit4ed10c5c7aafbbc49555a82b3ac96df6653c6e90 (patch)
treec248b988be0f17937935905bb8a86dc3c025c9f4 /completions/bash
parentaf7d67771be7a4b19afb9611a8f8d48acd7010ee (diff)
downloadpodman-4ed10c5c7aafbbc49555a82b3ac96df6653c6e90.tar.gz
podman-4ed10c5c7aafbbc49555a82b3ac96df6653c6e90.tar.bz2
podman-4ed10c5c7aafbbc49555a82b3ac96df6653c6e90.zip
Update bash completion for checkpoint/restore
This brings all the recent changes to checkpoint/restore to the bash completion. Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/podman30
1 files changed, 20 insertions, 10 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 3c6b6ec50..c34381e2b 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -716,16 +716,22 @@ _podman_container_attach() {
}
_podman_container_checkpoint() {
- local options_with_args="
- --help -h
- "
local boolean_options="
- --keep
+ -a
+ --all
+ -h
+ --help
-k
+ --keep
+ -l
+ --latest
+ -R
+ --leave-running
+ --tcp-established
"
case "$cur" in
-*)
- COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
+ COMPREPLY=($(compgen -W "$boolean_options" -- "$cur"))
;;
*)
__podman_complete_containers_running
@@ -794,16 +800,20 @@ _podman_container_restart() {
}
_podman_container_restore() {
- local options_with_args="
- --help -h
- "
local boolean_options="
- --keep
+ -a
+ --all
+ -h
+ --help
-k
+ --keep
+ -l
+ --latest
+ --tcp-established
"
case "$cur" in
-*)
- COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
+ COMPREPLY=($(compgen -W "$boolean_options" -- "$cur"))
;;
*)
__podman_complete_containers_created