command/function
All checks were successful
/ job (push) Successful in 2m58s

This commit is contained in:
Marc Beninca 2025-07-12 02:29:04 +02:00
parent 99b092e04b
commit ecc2f53254
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 1 additions and 12 deletions

View file

@ -201,17 +201,6 @@ rwx_code_action_target() {
"${_rwx_code_awk}" "${_rwx_code_awk}"
} }
# find command function
rwx_code_command_function() {
local name="${1}"
[ -n "${name}" ] || return
rwx_code_cache |
awk \
-v action="command function" \
-v target="${name}" \
"${_rwx_code_awk}"
}
# show all the cached main modules # show all the cached main modules
#= rcm #= rcm
rwx_code_modules() { rwx_code_modules() {

View file

@ -204,7 +204,7 @@ rwx_shell_main() {
*) ;; *) ;;
esac esac
# find the matching function # find the matching function
function="$(rwx_code_command_function "${command}")" function="$(rwx_code_action_target "command function" "${command}")"
if [ -n "${function}" ]; then if [ -n "${function}" ]; then
"${function}" "${@}" "${function}" "${@}"
fi fi