From fcdf411841239b477452efe9f6ccaf48fdee98e1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 12 Jul 2025 00:29:10 +0200 Subject: [PATCH 1/2] code/doc --- sh/core/code.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index 6ea16c5..df911bf 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -238,11 +238,7 @@ rwx_code_check() { rwx_code_doc() { local name="${1}" [ -n "${name}" ] || return - rwx_code_cache | - awk \ - -v action="doc" \ - -v target="${name}" \ - "${_rwx_code_awk}" + rwx_code_action_target "doc" "${name}" } rwx_code_load() { From a10abc5598b1ea9a6fddfc6a6a7bea7a9da305e7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 12 Jul 2025 01:19:10 +0200 Subject: [PATCH 2/2] shfmt/user --- sh/core/code.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index df911bf..3b62ca7 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -225,12 +225,15 @@ rwx_code_modules() { # check source code rwx_code_check() { - # check format - rwx_log - rwx_shfmt "${rwx_main_root}" # check syntax rwx_log rwx_shellcheck "${rwx_main_root}" + # check format + rwx_log + rwx_shfmt "${rwx_main_root}" + rwx_log + [ -e "${rwx_code_root}" ] && + rwx_shfmt "${rwx_code_root}" } # fetch matching doc for given name