aboutsummaryrefslogtreecommitdiff
path: root/docs/podman-remote.sh
blob: db3bb6d50dc8ac80cac5cfd4f58e74b265d54d82 (plain)
1
2
3
4
5
6
7
8
9
10
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