test/doc
This commit is contained in:
parent
e157a1ecf7
commit
060a84abda
4 changed files with 51 additions and 44 deletions
38
sh/self.sh
38
sh/self.sh
|
@ -1,18 +1,6 @@
|
|||
# self
|
||||
# module
|
||||
|
||||
# meta doc
|
||||
#= rd
|
||||
rwx_doc() {
|
||||
local name="${1}"
|
||||
[ -n "${name}" ] || return
|
||||
printf "%s" "${_rwx_code}" |
|
||||
awk \
|
||||
--assign action="doc" \
|
||||
--assign target="${name}" \
|
||||
--file "${RWX_AWK}"
|
||||
}
|
||||
|
||||
# ╭──────┬──────────╮
|
||||
# │ self │ commands │
|
||||
# ╰──────┴──────────╯
|
||||
|
@ -109,32 +97,6 @@ rwx_self_subset() {
|
|||
done
|
||||
}
|
||||
|
||||
# ╭──────┬──────╮
|
||||
# │ self │ test │
|
||||
# ╰──────┴──────╯
|
||||
|
||||
#= rst
|
||||
rwx_self_test() {
|
||||
local item
|
||||
set \
|
||||
"main" \
|
||||
"alias/git" \
|
||||
\
|
||||
"RWX_MAIN_NAME" \
|
||||
\
|
||||
"_rwx_code" \
|
||||
\
|
||||
"rwx_cache" \
|
||||
\
|
||||
"alias/batcat" \
|
||||
"b" \
|
||||
|
||||
for item in "${@}"; do
|
||||
echo
|
||||
rwx_doc "${item}"
|
||||
done
|
||||
}
|
||||
|
||||
# ╭──────┬───────╮
|
||||
# │ self │ write │
|
||||
# ╰──────┴───────╯
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue