From a17596b862ba29fdb599aa1c41b7ff1b232f1952 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 10 Jul 2025 02:09:54 +0200 Subject: [PATCH] code/cache --- sh/core/code.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 │ # ╰──────┴──────╯