summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorUrvashi Mohnani <umohnani@redhat.com>2017-11-02 15:31:49 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-07 19:16:31 +0000
commit23979f8e0644cd1e05e05b0fc9bcb4a1fe42bb82 (patch)
treedc018440069dece8df8f57de65cdbb46bb06350d /completions/bash
parentd086beb7abc5ed002fe699ab02792aa47d50d581 (diff)
downloadpodman-23979f8e0644cd1e05e05b0fc9bcb4a1fe42bb82.tar.gz
podman-23979f8e0644cd1e05e05b0fc9bcb4a1fe42bb82.tar.bz2
podman-23979f8e0644cd1e05e05b0fc9bcb4a1fe42bb82.zip
Add 'kpod import' command
Imports a tarball and saves it as a filesystem image Signed-off-by: Urvashi Mohnani <umohnani@redhat.com> Closes: #12 Approved by: rhatdan
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/kpod25
1 files changed, 25 insertions, 0 deletions
diff --git a/completions/bash/kpod b/completions/bash/kpod
index 88edbee6f..2387228cb 100644
--- a/completions/bash/kpod
+++ b/completions/bash/kpod
@@ -711,6 +711,30 @@ _kpod_history() {
esac
}
+
+_kpod_import() {
+ local options_with_args="
+ --change
+ -c
+ --message
+ -m
+ "
+ local boolean_options="
+ --help
+ -h
+ "
+ _complete_ "$options_with_args" "$boolean_options"
+
+ case "$cur" in
+ -*)
+ COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
+ ;;
+ *)
+ __kpod_list_images
+ ;;
+ esac
+}
+
_kpod_info() {
local boolean_options="
--help
@@ -1402,6 +1426,7 @@ _kpod_kpod() {
export
history
images
+ import
info
inspect
kill