Commit Diff


commit - 662801575ac0b9f2b4fe57fce5323eabe90d0c99
commit + 8fe13599605841c3a698a5e18000e9a0a3c277b8
blob - 7de3eeaff9b92f1279cd187b1c219670ee48e7b8
blob + 6242c53c4573abc37e21c294645aae32fcda26a8
--- Makefile
+++ Makefile
@@ -16,7 +16,7 @@
 .POSIX:
 PREFIX:=/usr/local
 SHELLS=ksh93 ksh yash sh
-UTILITY_VERSION=0.1.3
+UTILITY_VERSION=0.1.4
 UTILITY=$(PWD)/r7
 # To use the test suite, please edit or use environment for SSH parameters
 # SSH_ID=/path/to/.ssh/id_ed25519
@@ -198,6 +198,7 @@ workdir2-ssh: workdir2-init
 			nodes && \
 			prefix dummy && group heyo '.*' && output_dump && \
 			output | grep Heyo! && \
+			group_functions_all && \
 			trace_id_last && \
 			output_duration | grep 0 && \
 			output_status && \
@@ -258,6 +259,7 @@ workdir2-source: workdir2-init
 	sleep 1
 	cd testdir/workdir2/ && $R -sda group source $(SSH_TEST_NODES)
 	cd testdir/workdir2/ && $R output \* source source_nodesource2 | grep 3333
+	cd testdir/workdir2/ && . $(UTILITY) && group_functions_all
 	@echo _________________________________________________________
 
 workdir2-importer: workdir2-init
blob - ee60ec21ba30a9cfed93d4539df8b90f03cfc498
blob + ebe25be32e1f9982fa1092b78ad73df33ea22d22
--- README.md
+++ README.md
@@ -1043,7 +1043,8 @@ ssh-ids-hosts
 4. [members](#members)
 5. [group](#group)
 6. [group-functions](#group-functions)
-7. [prefix](#prefix)
+7. [group-functions-all](#group-functions-all)
+8. [prefix](#prefix)
 
 ---
 
@@ -1107,6 +1108,19 @@ Returns a list of functions found in the specified GRO
 group-functions GROUPNAME
 ```
 
+### group-functions-all
+
+***Description:***
+Returns a list of all group functions found in the current `R7_WORKDIR/groups`
+directory with the `group_name::function_name` format
+
+***Usage:***
+
+```sh
+group-functions-all
+```
+
+
 ### prefix
 
 ***Description:***
blob - 4f798a18628fc43ad38372d76eeaa06c3731685d
blob + edbddcb50d5042a9844826841ef59fc48507834e
--- index.md
+++ index.md
@@ -26,6 +26,7 @@ currently used as deployment and automation gear for `
 - [v0.1.1](https://inda.re/r7/releases/r7-0.1.1.tar.gz)
 - [v0.1.2](https://inda.re/r7/releases/r7-0.1.2.tar.gz)
 - [v0.1.3](https://inda.re/r7/releases/r7-0.1.3.tar.gz)
+- [v0.1.4](https://inda.re/r7/releases/r7-0.1.4.tar.gz)
 - [latest](https://inda.re/r7/releases/r7-latest.tar.gz)
 
 ## Documentation
blob - 5a62b0bffb468b61c2d4a9b961d18a1198da412c
blob + 01e35e2cd1c215f2cd66bd193709b8137dadcf45
--- r7
+++ r7
@@ -20,7 +20,7 @@
 # Global configuration
 # ====================
 
-VERSION=0.1.3
+VERSION=0.1.4
 : "${HOSTNAME:=$(uname -n)}"
 
 # shellcheck disable=SC2031
@@ -553,7 +553,7 @@ alias group-functions=group_functions
 alias groupfuncs=group_functions
 group_functions() (
 	if test "$R7_GROUP_ALLPREFIX" = yes; then
-		grep 2>/dev/null -e "^.*()" "$R7_WORKDIR/groups/$1" | cut -d\( -f1
+		grep 2>/dev/null -e "^[^#].*()" "$R7_WORKDIR/groups/$1" | cut -d\( -f1
 		return 0
 	fi
 	for pre in $prefix; do
@@ -561,6 +561,17 @@ group_functions() (
 	done
 )
 
+alias group-functions-all=group_functions_all
+alias groupfuncsall=group_functions_all
+group_functions_all() (
+	set -- $(cd "$R7_WORKDIR/groups" && find ./* -type f -maxdepth 0)
+	for file; do
+		group_functions "${file##./}" | while read -r func; do
+			printf %s::%s\\n "${file##./}" "$func"
+		done
+	done
+)
+
 prefix() {
 	prefix="$*"
 	R7_PREFIX=$prefix
@@ -1155,7 +1166,14 @@ md() {
 	pandoc -t html -f markdown+smart "$@"
 }
 
-_su() {
+_doc() {
+	output \* \* doc\* | grep ^- | while read -r _ host group function; do
+		cat "$R7_OUTPUTDIR/$host/$group/$function/output"
+		echo
+	done
+}
+
+_summary() {
 	summary | while read -r line; do
 		set -- $line
 		case $1 in
@@ -1233,12 +1251,13 @@ html() {
 					</ul>
 				</nav>
 				<main>
+					<section id="Summary">
+						$(_summary | md)
+					</section>
 					<section id="Documentation">
 						$(md README.md)
+						$(_doc | md)
 					</section>
-					<section id="Summary">
-						$(_su | md)
-					</section>
 				</main>
 				<footer>
 					<p>r7</p>
blob - fd83d92bae7f4e528044edb40030d56c724904aa
blob + 73a31a02e970168627a967ff587f22b1577ff346
--- r7.1
+++ r7.1
@@ -1,7 +1,7 @@
 '\" t
 .\" Automatically generated by Pandoc 3.6.2
 .\"
-.TH "R7" "1" "Tue Jun 3 2025" "v0.1.3" "User Manual"
+.TH "R7" "1" "Tue Jun 3 2025" "v0.1.4" "User Manual"
 .SS Tutorial
 .SS Introduction
 R7 is a configuration management framework made to configure nodes with