summaryrefslogtreecommitdiff
path: root/docs/podman-remote.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-26 11:37:10 +0200
committerGitHub <noreply@github.com>2019-07-26 11:37:10 +0200
commiteca157fb54d860215695b8e1de8a10cd1c836772 (patch)
tree15cffd5dff52de31d22482d99542b240bf99eca8 /docs/podman-remote.sh
parent1910d68e4d574ebf53aa31e2dc7e56b0839a65f5 (diff)
parentce0132a45e1ab748ee3adbf96f934ef41ca6b59a (diff)
downloadpodman-eca157fb54d860215695b8e1de8a10cd1c836772.tar.gz
podman-eca157fb54d860215695b8e1de8a10cd1c836772.tar.bz2
podman-eca157fb54d860215695b8e1de8a10cd1c836772.zip
Merge pull request #3627 from ashley-cui/rmdocs
Documenation & make tar.gz for remote
Diffstat (limited to 'docs/podman-remote.sh')
-rwxr-xr-xdocs/podman-remote.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/podman-remote.sh b/docs/podman-remote.sh
new file mode 100755
index 000000000..db3bb6d50
--- /dev/null
+++ b/docs/podman-remote.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+BREWDIR=$1
+mkdir -p $BREWDIR
+docs() {
+[ -z $1 ] || type="-$1"
+for i in $(podman-remote $1 --help | sed -n '/^Available Commands:/,/^Flags:/p'| sed -e '1d;$d' -e '/^$/d' | awk '{print $1}'); do install podman$type-$i.1 $BREWDIR 2>/dev/null || install links/podman$type-$i.1 $BREWDIR; done
+}
+docs
+
+for cmd in 'container image pod volume'; do docs $cmd; done