rwx/sh/test.sh
2025-07-07 02:10:05 +02:00

55 lines
788 B
Bash

# ╭──────╮
# │ test │
# ╰──────╯
# * code
# * doc
rwx_test() {
rwx_test_code
rwx_test_doc
}
# ╭──────┬──────╮
# │ test │ code │
# ╰──────┴──────╯
rwx_test_code() {
local items
set \
"constants" \
"variables" \
"functions" \
"aliases" \
"aliases_functions" \
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
}