mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-21 12:01:54 +02:00
51812: run-help for docker, perf, podman, ssh, svnadmin
This commit is contained in:
parent
1ffc6d0ef5
commit
60479a7a18
6 changed files with 33 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2023-10-10 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Jörg Sommer: 51812: Functions/Misc/run-help-docker,
|
||||
Functions/Misc/run-help-perf, Functions/Misc/run-help-podman,
|
||||
Functions/Misc/run-help-ssh, Functions/Misc/run-help-svnadmin:
|
||||
run-help for docker, perf, podman, ssh, svnadmin
|
||||
|
||||
2023-10-05 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 52204: Src/parse.c: fix unmeta() thinko from 52193
|
||||
|
|
9
Functions/Misc/run-help-docker
Normal file
9
Functions/Misc/run-help-docker
Normal file
|
@ -0,0 +1,9 @@
|
|||
if [[ $# == 0 ]]
|
||||
then
|
||||
man docker
|
||||
elif [[ $# > 1 && $1 == (builder|checkpoint|config|container|context|image|manifest|network|node|plugin|secret|service|stack|swarm|system|trust|volume) ]]
|
||||
then
|
||||
man docker-$1-$2
|
||||
else
|
||||
man docker-$1
|
||||
fi
|
1
Functions/Misc/run-help-perf
Normal file
1
Functions/Misc/run-help-perf
Normal file
|
@ -0,0 +1 @@
|
|||
man perf${1:+-$1}
|
9
Functions/Misc/run-help-podman
Normal file
9
Functions/Misc/run-help-podman
Normal file
|
@ -0,0 +1,9 @@
|
|||
if [[ $# == 0 ]]
|
||||
then
|
||||
man podman
|
||||
elif [[ $# > 1 && $1 == (container|generate|healthcheck|image|kube|machine|manifest|network|pod|secret|system|volume) ]]
|
||||
then
|
||||
man podman-$1-$2
|
||||
else
|
||||
man podman-$1
|
||||
fi
|
6
Functions/Misc/run-help-ssh
Normal file
6
Functions/Misc/run-help-ssh
Normal file
|
@ -0,0 +1,6 @@
|
|||
if [[ $# < 2 ]]
|
||||
then
|
||||
man ssh
|
||||
else
|
||||
run-help $2
|
||||
fi
|
1
Functions/Misc/run-help-svnadmin
Normal file
1
Functions/Misc/run-help-svnadmin
Normal file
|
@ -0,0 +1 @@
|
|||
svnadmin help $1 | ${=PAGER:-more}
|
Loading…
Reference in a new issue