Compare commits

...

2 commits

Author SHA1 Message Date
a10abc5598
shfmt/user
All checks were successful
/ job (push) Successful in 2m57s
2025-07-12 01:19:10 +02:00
fcdf411841
code/doc 2025-07-12 00:29:10 +02:00

View file

@ -225,12 +225,15 @@ rwx_code_modules() {
# check source code # check source code
rwx_code_check() { rwx_code_check() {
# check format
rwx_log
rwx_shfmt "${rwx_main_root}"
# check syntax # check syntax
rwx_log rwx_log
rwx_shellcheck "${rwx_main_root}" 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 # fetch matching doc for given name
@ -238,11 +241,7 @@ rwx_code_check() {
rwx_code_doc() { rwx_code_doc() {
local name="${1}" local name="${1}"
[ -n "${name}" ] || return [ -n "${name}" ] || return
rwx_code_cache | rwx_code_action_target "doc" "${name}"
awk \
-v action="doc" \
-v target="${name}" \
"${_rwx_code_awk}"
} }
rwx_code_load() { rwx_code_load() {