From 09c0721560d151830b878401a23abfa5135c4bf4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 7 Jul 2025 03:01:21 +0200 Subject: [PATCH] code/parse --- sh/code.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sh/code.sh b/sh/code.sh index c676235..31339f6 100644 --- a/sh/code.sh +++ b/sh/code.sh @@ -110,6 +110,15 @@ EOF # parse variables _rwx_code_variables="$(rwx_parse_variables)" } + +rwx_code_parse() { + local action="${1}" + rwx_code | + awk \ + --assign action="${action}" \ + "${_rwx_code_awk}" +} + rwx_parse_aliases() { rwx_code | awk \