diff --git a/sh/code.sh b/sh/code.sh index c4cef2d..8f6851f 100644 --- a/sh/code.sh +++ b/sh/code.sh @@ -1,6 +1,10 @@ # code # module +# ╭──────╮ +# │ code │ +# ╰──────╯ + # show the cached code #= rc rwx_code() { @@ -18,3 +22,17 @@ rwx_code_constants() { rwx_code_functions() { echo "${_rwx_code_functions}" } + +# ╭──────┬───────╮ +# │ 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}" +} diff --git a/sh/self.sh b/sh/self.sh index b683214..e25add3 100644 --- a/sh/self.sh +++ b/sh/self.sh @@ -25,20 +25,6 @@ rwx_doc() { --file "${RWX_AWK}" } -# ╭──────┬───────╮ -# │ self │ check │ -# ╰──────┴───────╯ - -# check source code -rwx_self_check() { - # check format - rwx_log - rwx_shfmt "${RWX_ROOT_SYSTEM}" - # check syntax - rwx_log - rwx_shellcheck "${RWX_ROOT_SYSTEM}" -} - # ╭──────┬──────────╮ # │ self │ commands │ # ╰──────┴──────────╯