code/functions
This commit is contained in:
parent
f9252e1ee8
commit
ba8dee99e7
1 changed files with 92 additions and 88 deletions
180
sh/core/code.sh
180
sh/core/code.sh
|
@ -41,14 +41,30 @@ _rwx_code_tasks_todo=""
|
||||||
# cache for code variables
|
# cache for code variables
|
||||||
_rwx_code_variables=""
|
_rwx_code_variables=""
|
||||||
|
|
||||||
# ╭──────┬───────╮
|
# ╭──────┬───────────╮
|
||||||
# │ code │ cache │
|
# │ code │ functions │
|
||||||
# ╰──────┴───────╯
|
# ╰──────┴───────────╯
|
||||||
|
|
||||||
# output all cached code
|
# show the cached awk script
|
||||||
rwx_code_cache() {
|
rwx_code_awk() {
|
||||||
rwx_code_cache_main
|
echo "${_rwx_code_awk}"
|
||||||
rwx_code_cache_user
|
}
|
||||||
|
|
||||||
|
# show the cached aliases
|
||||||
|
#= rca
|
||||||
|
rwx_code_aliases() {
|
||||||
|
echo "${_rwx_code_aliases}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached aliases and functions
|
||||||
|
#= rcaf
|
||||||
|
rwx_code_aliases_functions() {
|
||||||
|
echo "${_rwx_code_aliases_functions}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached binaries
|
||||||
|
rwx_code_binaries() {
|
||||||
|
echo "${_rwx_code_binaries}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# output cached main code
|
# output cached main code
|
||||||
|
@ -61,6 +77,75 @@ rwx_code_cache_user() {
|
||||||
echo "${rwx_code_cache_user}"
|
echo "${rwx_code_cache_user}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# show the cached commands
|
||||||
|
rwx_code_commands() {
|
||||||
|
echo "${_rwx_code_commands}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached commands and functions
|
||||||
|
#= rccf
|
||||||
|
rwx_code_commands_functions() {
|
||||||
|
echo "${_rwx_code_commands_functions}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached constants
|
||||||
|
#= rcc
|
||||||
|
rwx_code_constants() {
|
||||||
|
echo "${_rwx_code_constants}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached functions
|
||||||
|
#= rcf
|
||||||
|
rwx_code_functions() {
|
||||||
|
echo "${_rwx_code_functions}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached main modules
|
||||||
|
#= rcmm
|
||||||
|
rwx_code_modules_main() {
|
||||||
|
echo "${rwx_code_modules_main}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached user modules
|
||||||
|
#= rcmu
|
||||||
|
rwx_code_modules_user() {
|
||||||
|
echo "${rwx_code_modules_user}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached tasks
|
||||||
|
#= rct
|
||||||
|
rwx_code_tasks() {
|
||||||
|
echo "${_rwx_code_tasks}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached fixme tasks
|
||||||
|
#= rctf
|
||||||
|
rwx_code_tasks_fixme() {
|
||||||
|
echo "${_rwx_code_tasks_fixme}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached todo tasks
|
||||||
|
#= rctt
|
||||||
|
rwx_code_tasks_todo() {
|
||||||
|
echo "${_rwx_code_tasks_todo}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# show the cached variables
|
||||||
|
#= rcv
|
||||||
|
rwx_code_variables() {
|
||||||
|
echo "${_rwx_code_variables}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# ╭──────┬───────╮
|
||||||
|
# │ code │ cache │
|
||||||
|
# ╰──────┴───────╯
|
||||||
|
|
||||||
|
# output all cached code
|
||||||
|
rwx_code_cache() {
|
||||||
|
rwx_code_cache_main
|
||||||
|
rwx_code_cache_user
|
||||||
|
}
|
||||||
|
|
||||||
# ╭──────┬─────────╮
|
# ╭──────┬─────────╮
|
||||||
# │ code │ install │
|
# │ code │ install │
|
||||||
# ╰──────┴─────────╯
|
# ╰──────┴─────────╯
|
||||||
|
@ -104,11 +189,6 @@ export ENV=\"${rwx_main_path}\"
|
||||||
# │ code │ parts │
|
# │ code │ parts │
|
||||||
# ╰──────┴───────╯
|
# ╰──────┴───────╯
|
||||||
|
|
||||||
# show the cached awk script
|
|
||||||
rwx_code_awk() {
|
|
||||||
echo "${_rwx_code_awk}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# call awk for action with target
|
# call awk for action with target
|
||||||
rwx_code_action_target() {
|
rwx_code_action_target() {
|
||||||
local action="${1}"
|
local action="${1}"
|
||||||
|
@ -121,12 +201,6 @@ rwx_code_action_target() {
|
||||||
"${_rwx_code_awk}"
|
"${_rwx_code_awk}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# show the cached aliases
|
|
||||||
#= rca
|
|
||||||
rwx_code_aliases() {
|
|
||||||
echo "${_rwx_code_aliases}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# find command function
|
# find command function
|
||||||
rwx_code_command_function() {
|
rwx_code_command_function() {
|
||||||
local name="${1}"
|
local name="${1}"
|
||||||
|
@ -138,40 +212,6 @@ rwx_code_command_function() {
|
||||||
"${_rwx_code_awk}"
|
"${_rwx_code_awk}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# show the cached aliases and functions
|
|
||||||
#= rcaf
|
|
||||||
rwx_code_aliases_functions() {
|
|
||||||
echo "${_rwx_code_aliases_functions}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached binaries
|
|
||||||
rwx_code_binaries() {
|
|
||||||
echo "${_rwx_code_binaries}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached commands
|
|
||||||
rwx_code_commands() {
|
|
||||||
echo "${_rwx_code_commands}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached commands and functions
|
|
||||||
#= rccf
|
|
||||||
rwx_code_commands_functions() {
|
|
||||||
echo "${_rwx_code_commands_functions}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached constants
|
|
||||||
#= rcc
|
|
||||||
rwx_code_constants() {
|
|
||||||
echo "${_rwx_code_constants}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached functions
|
|
||||||
#= rcf
|
|
||||||
rwx_code_functions() {
|
|
||||||
echo "${_rwx_code_functions}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show all the cached main modules
|
# show all the cached main modules
|
||||||
#= rcm
|
#= rcm
|
||||||
rwx_code_modules() {
|
rwx_code_modules() {
|
||||||
|
@ -179,42 +219,6 @@ rwx_code_modules() {
|
||||||
rwx_code_modules_user
|
rwx_code_modules_user
|
||||||
}
|
}
|
||||||
|
|
||||||
# show the cached main modules
|
|
||||||
#= rcmm
|
|
||||||
rwx_code_modules_main() {
|
|
||||||
echo "${rwx_code_modules_main}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached user modules
|
|
||||||
#= rcmu
|
|
||||||
rwx_code_modules_user() {
|
|
||||||
echo "${rwx_code_modules_user}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached tasks
|
|
||||||
#= rct
|
|
||||||
rwx_code_tasks() {
|
|
||||||
echo "${_rwx_code_tasks}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached fixme tasks
|
|
||||||
#= rctf
|
|
||||||
rwx_code_tasks_fixme() {
|
|
||||||
echo "${_rwx_code_tasks_fixme}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached todo tasks
|
|
||||||
#= rctt
|
|
||||||
rwx_code_tasks_todo() {
|
|
||||||
echo "${_rwx_code_tasks_todo}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# show the cached variables
|
|
||||||
#= rcv
|
|
||||||
rwx_code_variables() {
|
|
||||||
echo "${_rwx_code_variables}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# ╭──────┬───────╮
|
# ╭──────┬───────╮
|
||||||
# │ code │ parse │
|
# │ code │ parse │
|
||||||
# ╰──────┴───────╯
|
# ╰──────┴───────╯
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue