summaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-04-16 00:41:09 -0400
committerQi Wang <qiwan@redhat.com>2020-04-22 20:05:21 -0400
commit17783dda6880c786a6eb3f47b3b6100e43bcdc77 (patch)
tree1d551e1a3901fe07c3540c8e9a58d93c8da5c772 /completions
parent576fe98bbcee7361251b437835125f93b4c10b15 (diff)
downloadpodman-17783dda6880c786a6eb3f47b3b6100e43bcdc77.tar.gz
podman-17783dda6880c786a6eb3f47b3b6100e43bcdc77.tar.bz2
podman-17783dda6880c786a6eb3f47b3b6100e43bcdc77.zip
manifest create,add,inspect
Implememts manifest subcommands create, add, inspect. Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/podman78
1 files changed, 78 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 6997db3b5..41a76a967 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -1733,6 +1733,83 @@ _podman_logs() {
esac
}
+_podman_manifest() {
+ local boolean_options="
+ --help
+ -h
+ "
+ subcommands="
+ add
+ create
+ inspect
+ "
+ __podman_subcommands "$subcommands" && return
+
+ case "$cur" in
+ -*)
+ COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
+ ;;
+ *)
+ COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) )
+ ;;
+ esac
+}
+
+_podman_manifest_add() {
+ local options_with_args="
+ --annotation
+ --arch
+ --features
+ --os-version
+ --variant
+ "
+
+ local boolean_options="
+ --all
+ --help
+ -h
+ "
+
+ _complete_ "$options_with_args" "$boolean_options"
+ case "$cur" in
+ -*)
+ COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
+ ;;
+ *)
+ __podman_complete_images --id
+ ;;
+ esac
+}
+
+_podman_manifest_create() {
+ local boolean_options="
+ --all
+ --help
+ -h
+ "
+
+ _complete_ "$boolean_options"
+}
+
+_podman_manifest_inspect() {
+ local options_with_args="
+ "
+
+ local boolean_options="
+ "
+
+ _complete_ "$options_with_args" "$boolean_options"
+ case "$cur" in
+ -*)
+ COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
+ ;;
+ *)
+ __podman_complete_images --id
+
+ ;;
+ esac
+}
+
_podman_pull() {
local options_with_args="
--authfile
@@ -3356,6 +3433,7 @@ _podman_podman() {
login
logout
logs
+ manifest
mount
pause
pod