code/functions

This commit is contained in:
Marc Beninca 2025-07-11 16:24:24 +02:00
parent f9252e1ee8
commit ba8dee99e7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -41,14 +41,30 @@ _rwx_code_tasks_todo=""
# cache for code variables # cache for code variables
_rwx_code_variables="" _rwx_code_variables=""
# ╭──────┬─────── # ╭──────┬───────────
# │ code │ cache # │ code │ functions
# ╰──────┴─────── # ╰──────┴───────────
# output all cached code # show the cached awk script
rwx_code_cache() { rwx_code_awk() {
rwx_code_cache_main echo "${_rwx_code_awk}"
rwx_code_cache_user }
# show the cached aliases
#= rca
rwx_code_aliases() {
echo "${_rwx_code_aliases}"
}
# show the cached aliases and functions
#= rcaf
rwx_code_aliases_functions() {
echo "${_rwx_code_aliases_functions}"
}
# show the cached binaries
rwx_code_binaries() {
echo "${_rwx_code_binaries}"
} }
# output cached main code # output cached main code
@ -61,6 +77,75 @@ rwx_code_cache_user() {
echo "${rwx_code_cache_user}" echo "${rwx_code_cache_user}"
} }
# show the cached commands
rwx_code_commands() {
echo "${_rwx_code_commands}"
}
# show the cached commands and functions
#= rccf
rwx_code_commands_functions() {
echo "${_rwx_code_commands_functions}"
}
# show the cached constants
#= rcc
rwx_code_constants() {
echo "${_rwx_code_constants}"
}
# show the cached functions
#= rcf
rwx_code_functions() {
echo "${_rwx_code_functions}"
}
# show the cached main modules
#= rcmm
rwx_code_modules_main() {
echo "${rwx_code_modules_main}"
}
# show the cached user modules
#= rcmu
rwx_code_modules_user() {
echo "${rwx_code_modules_user}"
}
# show the cached tasks
#= rct
rwx_code_tasks() {
echo "${_rwx_code_tasks}"
}
# show the cached fixme tasks
#= rctf
rwx_code_tasks_fixme() {
echo "${_rwx_code_tasks_fixme}"
}
# show the cached todo tasks
#= rctt
rwx_code_tasks_todo() {
echo "${_rwx_code_tasks_todo}"
}
# show the cached variables
#= rcv
rwx_code_variables() {
echo "${_rwx_code_variables}"
}
# ╭──────┬───────╮
# │ code │ cache │
# ╰──────┴───────╯
# output all cached code
rwx_code_cache() {
rwx_code_cache_main
rwx_code_cache_user
}
# ╭──────┬─────────╮ # ╭──────┬─────────╮
# │ code │ install │ # │ code │ install │
# ╰──────┴─────────╯ # ╰──────┴─────────╯
@ -104,11 +189,6 @@ export ENV=\"${rwx_main_path}\"
# │ code │ parts │ # │ code │ parts │
# ╰──────┴───────╯ # ╰──────┴───────╯
# show the cached awk script
rwx_code_awk() {
echo "${_rwx_code_awk}"
}
# call awk for action with target # call awk for action with target
rwx_code_action_target() { rwx_code_action_target() {
local action="${1}" local action="${1}"
@ -121,12 +201,6 @@ rwx_code_action_target() {
"${_rwx_code_awk}" "${_rwx_code_awk}"
} }
# show the cached aliases
#= rca
rwx_code_aliases() {
echo "${_rwx_code_aliases}"
}
# find command function # find command function
rwx_code_command_function() { rwx_code_command_function() {
local name="${1}" local name="${1}"
@ -138,40 +212,6 @@ rwx_code_command_function() {
"${_rwx_code_awk}" "${_rwx_code_awk}"
} }
# show the cached aliases and functions
#= rcaf
rwx_code_aliases_functions() {
echo "${_rwx_code_aliases_functions}"
}
# show the cached binaries
rwx_code_binaries() {
echo "${_rwx_code_binaries}"
}
# show the cached commands
rwx_code_commands() {
echo "${_rwx_code_commands}"
}
# show the cached commands and functions
#= rccf
rwx_code_commands_functions() {
echo "${_rwx_code_commands_functions}"
}
# show the cached constants
#= rcc
rwx_code_constants() {
echo "${_rwx_code_constants}"
}
# show the cached functions
#= rcf
rwx_code_functions() {
echo "${_rwx_code_functions}"
}
# show all the cached main modules # show all the cached main modules
#= rcm #= rcm
rwx_code_modules() { rwx_code_modules() {
@ -179,42 +219,6 @@ rwx_code_modules() {
rwx_code_modules_user rwx_code_modules_user
} }
# show the cached main modules
#= rcmm
rwx_code_modules_main() {
echo "${rwx_code_modules_main}"
}
# show the cached user modules
#= rcmu
rwx_code_modules_user() {
echo "${rwx_code_modules_user}"
}
# show the cached tasks
#= rct
rwx_code_tasks() {
echo "${_rwx_code_tasks}"
}
# show the cached fixme tasks
#= rctf
rwx_code_tasks_fixme() {
echo "${_rwx_code_tasks_fixme}"
}
# show the cached todo tasks
#= rctt
rwx_code_tasks_todo() {
echo "${_rwx_code_tasks_todo}"
}
# show the cached variables
#= rcv
rwx_code_variables() {
echo "${_rwx_code_variables}"
}
# ╭──────┬───────╮ # ╭──────┬───────╮
# │ code │ parse │ # │ code │ parse │
# ╰──────┴───────╯ # ╰──────┴───────╯