summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2018-01-10 09:35:23 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-06 18:09:31 +0000
commit0d7e6fa22fa15254e1599b9f41ab9be2650cff71 (patch)
treebf7997d2e3259788a79b4ebcfab3dab1e8f655a3 /completions/bash
parent1a48a7a7c0dafe98ed4c8461adabc6b8ece1a8c3 (diff)
downloadpodman-0d7e6fa22fa15254e1599b9f41ab9be2650cff71.tar.gz
podman-0d7e6fa22fa15254e1599b9f41ab9be2650cff71.tar.bz2
podman-0d7e6fa22fa15254e1599b9f41ab9be2650cff71.zip
Add podman search command
podman search queries a registry for a matching image and prints the output. I added a new flag called "registry" giving the user the option to search a specific registry if they don't want to search all their default registries. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #241 Approved by: rhatdan
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/podman14
1 files changed, 14 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 0087c56b9..b1033df1c 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -954,6 +954,19 @@ _podman_pull() {
_complete_ "$options_with_args" "$boolean_options"
}
+_podman_search() {
+ local options_with_args="
+ --filter -f
+ --format
+ --limit
+ --registry
+ "
+ local boolean_options="
+ --no-trunc
+ "
+ _complete_ "$options_with_args" "$boolean_options"
+}
+
_podman_unmount() {
_podman_umount $@
}
@@ -1589,6 +1602,7 @@ _podman_podman() {
rmi
run
save
+ search
start
stats
stop