From 23979f8e0644cd1e05e05b0fc9bcb4a1fe42bb82 Mon Sep 17 00:00:00 2001 From: Urvashi Mohnani Date: Thu, 2 Nov 2017 15:31:49 -0400 Subject: Add 'kpod import' command Imports a tarball and saves it as a filesystem image Signed-off-by: Urvashi Mohnani Closes: #12 Approved by: rhatdan --- completions/bash/kpod | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'completions') 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 -- cgit v1.2.3-54-g00ecf