about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Sommer <joerg@jo-so.de>2023-05-31 19:45:59 +0200
committerOliver Kiddle <opk@zsh.org>2023-10-11 00:38:32 +0200
commit60479a7a180a837df4d973b5b9b50f4cd566bef9 (patch)
treee1eaeb785efdea9e24bbff572378a1f5cacf5d53
parent1ffc6d0ef58bd0e6e4e0cb170af8c3325d77b376 (diff)
downloadzsh-60479a7a180a837df4d973b5b9b50f4cd566bef9.tar.gz
zsh-60479a7a180a837df4d973b5b9b50f4cd566bef9.tar.xz
zsh-60479a7a180a837df4d973b5b9b50f4cd566bef9.zip
51812: run-help for docker, perf, podman, ssh, svnadmin
-rw-r--r--ChangeLog7
-rw-r--r--Functions/Misc/run-help-docker9
-rw-r--r--Functions/Misc/run-help-perf1
-rw-r--r--Functions/Misc/run-help-podman9
-rw-r--r--Functions/Misc/run-help-ssh6
-rw-r--r--Functions/Misc/run-help-svnadmin1
6 files changed, 33 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b7d49ace2..a54ffdfe2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/Functions/Misc/run-help-docker b/Functions/Misc/run-help-docker
new file mode 100644
index 000000000..09a8a221a
--- /dev/null
+++ b/Functions/Misc/run-help-docker
@@ -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
diff --git a/Functions/Misc/run-help-perf b/Functions/Misc/run-help-perf
new file mode 100644
index 000000000..2e0695af2
--- /dev/null
+++ b/Functions/Misc/run-help-perf
@@ -0,0 +1 @@
+man perf${1:+-$1}
diff --git a/Functions/Misc/run-help-podman b/Functions/Misc/run-help-podman
new file mode 100644
index 000000000..64d9cd83f
--- /dev/null
+++ b/Functions/Misc/run-help-podman
@@ -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
diff --git a/Functions/Misc/run-help-ssh b/Functions/Misc/run-help-ssh
new file mode 100644
index 000000000..9c48596ff
--- /dev/null
+++ b/Functions/Misc/run-help-ssh
@@ -0,0 +1,6 @@
+if [[ $# < 2 ]]
+then
+    man ssh
+else
+    run-help $2
+fi
diff --git a/Functions/Misc/run-help-svnadmin b/Functions/Misc/run-help-svnadmin
new file mode 100644
index 000000000..dbddd6396
--- /dev/null
+++ b/Functions/Misc/run-help-svnadmin
@@ -0,0 +1 @@
+svnadmin help $1 | ${=PAGER:-more}