From 60479a7a180a837df4d973b5b9b50f4cd566bef9 Mon Sep 17 00:00:00 2001 From: Jörg Sommer Date: Wed, 31 May 2023 19:45:59 +0200 Subject: 51812: run-help for docker, perf, podman, ssh, svnadmin --- ChangeLog | 7 +++++++ Functions/Misc/run-help-docker | 9 +++++++++ Functions/Misc/run-help-perf | 1 + Functions/Misc/run-help-podman | 9 +++++++++ Functions/Misc/run-help-ssh | 6 ++++++ Functions/Misc/run-help-svnadmin | 1 + 6 files changed, 33 insertions(+) create mode 100644 Functions/Misc/run-help-docker create mode 100644 Functions/Misc/run-help-perf create mode 100644 Functions/Misc/run-help-podman create mode 100644 Functions/Misc/run-help-ssh create mode 100644 Functions/Misc/run-help-svnadmin diff --git a/ChangeLog b/ChangeLog index b7d49ace2..a54ffdfe2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-10-10 Oliver Kiddle + + * 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 * 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} -- cgit 1.4.1