rwx/sh/test.sh

58 lines
829 B
Bash
Raw Normal View History

2025-07-07 00:33:55 +02:00
# ╭──────╮
# │ test │
# ╰──────╯
2025-07-07 00:29:50 +02:00
# * code
# * doc
2025-07-07 00:35:00 +02:00
rwx_test() {
2025-07-07 00:43:19 +02:00
rwx_test_code
rwx_test_doc
2025-07-07 00:35:00 +02:00
}
2025-07-07 00:29:50 +02:00
# ╭──────┬──────╮
# │ test │ code │
# ╰──────┴──────╯
2025-07-07 00:33:55 +02:00
rwx_test_code() {
local items
set \
2025-07-07 02:13:52 +02:00
"awk" \
2025-07-07 00:33:55 +02:00
"constants" \
"variables" \
"functions" \
"aliases" \
2025-07-08 01:25:22 +02:00
"aliases_functions" \
"commands"
2025-07-07 00:33:55 +02:00
rwx_code
for items in "${@}"; do
echo
"rwx_code_${items}"
done
}
2025-07-07 00:29:50 +02:00
# ╭──────┬─────╮
# │ test │ doc │
# ╰──────┴─────╯
rwx_test_doc() {
local item
set \
"main" \
"alias/git" \
\
"RWX_MAIN_NAME" \
\
"_rwx_code" \
\
"rwx_cache" \
\
"alias/batcat" \
2025-07-08 01:25:22 +02:00
"b" \
\
"rwx_install"
2025-07-07 00:29:50 +02:00
for item in "${@}"; do
echo
rwx_code_doc "${item}"
done
}