code/binaries

This commit is contained in:
Marc Beninca 2025-07-08 15:17:05 +02:00
parent a3ea2e6ef0
commit b108ace00a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 14 additions and 0 deletions

View file

@ -18,6 +18,8 @@ _rwx_code_awk="$(cat "${RWX_ROOT_SYSTEM}/code.awk")"
_rwx_code_aliases=""
# cache for code aliases functions
_rwx_code_aliases_functions=""
# cache for code binaries
_rwx_code_binaries=""
# cache for code commands
_rwx_code_commands=""
# cache for code constants
@ -120,6 +122,11 @@ 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}"
@ -182,6 +189,8 @@ rwx_code_load() {
done <<EOF
${_rwx_code_aliases_functions}
EOF
# parse binaries
_rwx_code_binaries="$(rwx_code_parse "binaries")"
# parse commands
_rwx_code_commands="$(rwx_code_parse "commands")"
# parse constants