test/doc
This commit is contained in:
parent
e157a1ecf7
commit
060a84abda
4 changed files with 51 additions and 44 deletions
20
sh/code.sh
20
sh/code.sh
|
@ -11,10 +11,10 @@ rwx_code() {
|
|||
echo "${_rwx_code}"
|
||||
}
|
||||
|
||||
# show the cached aliases
|
||||
#= rcac
|
||||
rwx_code_aliases_commands() {
|
||||
echo "${_rwx_code_aliases_commands}"
|
||||
# show the cached aliases and functions
|
||||
#= rcaf
|
||||
rwx_code_aliases_functions() {
|
||||
echo "${_rwx_code_aliases_functions}"
|
||||
}
|
||||
|
||||
# show the cached constants
|
||||
|
@ -48,3 +48,15 @@ rwx_code_check() {
|
|||
rwx_log
|
||||
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
|
||||
}
|
||||
|
||||
# fetch matching doc for given name
|
||||
#= rcd
|
||||
rwx_code_doc() {
|
||||
local name="${1}"
|
||||
[ -n "${name}" ] || return
|
||||
printf "%s" "${_rwx_code}" |
|
||||
awk \
|
||||
--assign action="doc" \
|
||||
--assign target="${name}" \
|
||||
--file "${RWX_AWK}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue