rwx/sh/code.sh

45 lines
717 B
Bash
Raw Normal View History

2025-07-06 23:09:41 +02:00
# code
# module
2025-07-06 23:15:48 +02:00
# ╭──────╮
# │ code │
# ╰──────╯
2025-07-06 23:09:41 +02:00
# show the cached code
#= rc
rwx_code() {
echo "${_rwx_code}"
}
2025-07-06 23:10:52 +02:00
# show the cached constants
#= rcc
rwx_code_constants() {
echo "${_rwx_code_constants}"
}
2025-07-06 23:11:25 +02:00
# show the cached functions
#= rcf
rwx_code_functions() {
echo "${_rwx_code_functions}"
}
2025-07-06 23:15:48 +02:00
2025-07-07 00:01:06 +02:00
# show the cached variables
#= rcv
rwx_code_variables() {
echo "${_rwx_code_variables}"
}
2025-07-06 23:15:48 +02:00
# ╭──────┬───────╮
# │ code │ check │
# ╰──────┴───────╯
# check source code
rwx_code_check() {
# check format
rwx_log
rwx_shfmt "${RWX_ROOT_SYSTEM}"
# check syntax
rwx_log
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
}