44 lines
717 B
Bash
44 lines
717 B
Bash
# code
|
|
# module
|
|
|
|
# ╭──────╮
|
|
# │ code │
|
|
# ╰──────╯
|
|
|
|
# show the cached code
|
|
#= rc
|
|
rwx_code() {
|
|
echo "${_rwx_code}"
|
|
}
|
|
|
|
# show the cached constants
|
|
#= rcc
|
|
rwx_code_constants() {
|
|
echo "${_rwx_code_constants}"
|
|
}
|
|
|
|
# show the cached functions
|
|
#= rcf
|
|
rwx_code_functions() {
|
|
echo "${_rwx_code_functions}"
|
|
}
|
|
|
|
# show the cached variables
|
|
#= rcv
|
|
rwx_code_variables() {
|
|
echo "${_rwx_code_variables}"
|
|
}
|
|
|
|
# ╭──────┬───────╮
|
|
# │ 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}"
|
|
}
|