rwx/sh/test.sh
2025-07-07 00:33:55 +02:00

50 lines
743 B
Bash

# ╭──────╮
# │ test │
# ╰──────╯
# * code
# * doc
# ╭──────┬──────╮
# │ test │ code │
# ╰──────┴──────╯
rwx_test_code() {
local items
set \
"constants" \
"variables" \
"functions" \
"aliases_functions" \
"aliases" \
rwx_code
for items in "${@}"; do
echo
"rwx_code_${items}"
done
}
# ╭──────┬─────╮
# │ test │ doc │
# ╰──────┴─────╯
rwx_test_doc() {
local item
set \
"main" \
"alias/git" \
\
"RWX_MAIN_NAME" \
\
"_rwx_code" \
\
"rwx_cache" \
\
"alias/batcat" \
"b" \
for item in "${@}"; do
echo
rwx_code_doc "${item}"
done
}