This commit is contained in:
Marc Beninca 2025-07-07 00:29:50 +02:00
parent e157a1ecf7
commit 060a84abda
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
4 changed files with 51 additions and 44 deletions

View file

@ -11,10 +11,10 @@ rwx_code() {
echo "${_rwx_code}"
}
# show the cached aliases
#= rcac
rwx_code_aliases_commands() {
echo "${_rwx_code_aliases_commands}"
# show the cached aliases and functions
#= rcaf
rwx_code_aliases_functions() {
echo "${_rwx_code_aliases_functions}"
}
# show the cached constants
@ -48,3 +48,15 @@ rwx_code_check() {
rwx_log
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
}
# fetch matching doc for given name
#= rcd
rwx_code_doc() {
local name="${1}"
[ -n "${name}" ] || return
printf "%s" "${_rwx_code}" |
awk \
--assign action="doc" \
--assign target="${name}" \
--file "${RWX_AWK}"
}