aboutsummaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-04-23 15:36:47 -0400
committerQi Wang <qiwan@redhat.com>2020-05-06 10:54:28 -0400
commit5621f5199d0aeaefae77db920866d7aeea9d1e7b (patch)
tree93ade2da60914f8de8d0745b0ef7da9a154f1db1 /completions/bash
parent0eb905ff2c2f033ee3009d8d374dcd2347ac04d1 (diff)
downloadpodman-5621f5199d0aeaefae77db920866d7aeea9d1e7b.tar.gz
podman-5621f5199d0aeaefae77db920866d7aeea9d1e7b.tar.bz2
podman-5621f5199d0aeaefae77db920866d7aeea9d1e7b.zip
Manifest remove, push
Implements podman manifest remove and podman manifest push. Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/podman55
1 files changed, 54 insertions, 1 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 61af7ac59..1e29a2e30 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -1742,7 +1742,9 @@ _podman_manifest() {
add
create
inspect
- "
+ push
+ remove
+ "
__podman_subcommands "$subcommands" && return
case "$cur" in
@@ -1838,6 +1840,57 @@ _podman_manifest_inspect() {
esac
}
+_podman_manifest_push() {
+ local options_with_args="
+ --authfile
+ --cert-dir
+ --creds
+ --digestfile
+ --format
+ -f
+ --sign-by
+ --signature-policy,
+ "
+
+ local boolean_options="
+ --all
+ --purge
+ --help
+ -h
+ --remove-signatures
+ --tls-verify
+ --quiet
+ "
+
+ _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_remove() {
+ 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