diff --git a/sh/core/code.sh b/sh/core/code.sh index 0d308f3..09d6c91 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -6,6 +6,10 @@ # │ code │ variables │ # ╰──────┴───────────╯ +# main modules code cache +rwx_code_cache_main="" +# user modules code cache +rwx_code_cache_user="" # main modules names rwx_code_modules_main="" # user modules names @@ -34,6 +38,26 @@ _rwx_code_functions="" # cache for code variables _rwx_code_variables="" +# ╭──────┬───────╮ +# │ code │ cache │ +# ╰──────┴───────╯ + +# output all cached code +rwx_code_cache() { + rwx_code_cache_main + rwx_code_cache_user +} + +# output cached main code +rwx_code_cache_main() { + echo "${rwx_code_cache_main}" +} + +# output cached user code +rwx_code_cache_user() { + echo "${rwx_code_cache_user}" +} + # ╭──────┬──────╮ # │ code │ help │ # ╰──────┴──────╯