parent
be43cb7fe1
commit
2f7dd63c74
4 changed files with 14 additions and 9 deletions
18
sh/code.sh
18
sh/code.sh
|
@ -1,10 +1,18 @@
|
|||
# code
|
||||
# module
|
||||
|
||||
# ╭──────╮
|
||||
# │ code │
|
||||
# ╰──────╯
|
||||
|
||||
# ╭──────┬───────────╮
|
||||
# │ code │ variables │
|
||||
# ╰──────┴───────────╯
|
||||
|
||||
# path to the required parsing awk script
|
||||
_rwx_code_awk="$(cat "${RWX_ROOT_SYSTEM}/code.awk")"
|
||||
|
||||
# ╭──────┬───────╮
|
||||
# │ code │ parts │
|
||||
# ╰──────┴───────╯
|
||||
|
||||
# show the cached code
|
||||
#= rc
|
||||
rwx_code() {
|
||||
|
@ -36,7 +44,7 @@ rwx_code_variables() {
|
|||
}
|
||||
|
||||
# ╭──────┬───────╮
|
||||
# │ code │ check │
|
||||
# │ code │ parse │
|
||||
# ╰──────┴───────╯
|
||||
|
||||
# check source code
|
||||
|
@ -58,5 +66,5 @@ rwx_code_doc() {
|
|||
awk \
|
||||
--assign action="doc" \
|
||||
--assign target="${name}" \
|
||||
--file "${RWX_AWK}"
|
||||
"${_rwx_code_awk}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue