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

@ -1,18 +1,6 @@
# self
# module
# meta doc
#= rd
rwx_doc() {
local name="${1}"
[ -n "${name}" ] || return
printf "%s" "${_rwx_code}" |
awk \
--assign action="doc" \
--assign target="${name}" \
--file "${RWX_AWK}"
}
# ╭──────┬──────────╮
# │ self │ commands │
# ╰──────┴──────────╯
@ -109,32 +97,6 @@ rwx_self_subset() {
done
}
# ╭──────┬──────╮
# │ self │ test │
# ╰──────┴──────╯
#= rst
rwx_self_test() {
local item
set \
"main" \
"alias/git" \
\
"RWX_MAIN_NAME" \
\
"_rwx_code" \
\
"rwx_cache" \
\
"alias/batcat" \
"b" \
for item in "${@}"; do
echo
rwx_doc "${item}"
done
}
# ╭──────┬───────╮
# │ self │ write │
# ╰──────┴───────╯