diff --git a/sh/core/code.sh b/sh/core/code.sh index 3b62ca7..6ea16c5 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -225,15 +225,12 @@ rwx_code_modules() { # check source code rwx_code_check() { - # check syntax - rwx_log - rwx_shellcheck "${rwx_main_root}" # check format rwx_log rwx_shfmt "${rwx_main_root}" + # check syntax rwx_log - [ -e "${rwx_code_root}" ] && - rwx_shfmt "${rwx_code_root}" + rwx_shellcheck "${rwx_main_root}" } # fetch matching doc for given name @@ -241,7 +238,11 @@ rwx_code_check() { rwx_code_doc() { local name="${1}" [ -n "${name}" ] || return - rwx_code_action_target "doc" "${name}" + rwx_code_cache | + awk \ + -v action="doc" \ + -v target="${name}" \ + "${_rwx_code_awk}" } rwx_code_load() {