code/init
This commit is contained in:
parent
1345f07e16
commit
3dceffeea5
2 changed files with 8 additions and 14 deletions
|
@ -215,6 +215,11 @@ rwx_code_main() {
|
||||||
fi
|
fi
|
||||||
# context / shell
|
# context / shell
|
||||||
else
|
else
|
||||||
rwx_self_init
|
# run interactive extras
|
||||||
|
if rwx_shell_interactive; then
|
||||||
|
# help
|
||||||
|
rwx_log
|
||||||
|
rwx_self_help
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
15
sh/self.sh
15
sh/self.sh
|
@ -14,23 +14,11 @@ rwx_self_help() {
|
||||||
" u__… = user"
|
" u__… = user"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────┬──────╮
|
|
||||||
# │ self │ init │
|
|
||||||
# ╰──────┴──────╯
|
|
||||||
|
|
||||||
rwx_self_init() {
|
|
||||||
# run interactive extras
|
|
||||||
if rwx_shell_interactive; then
|
|
||||||
# help
|
|
||||||
rwx_log
|
|
||||||
rwx_self_help
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# ╭──────┬────────╮
|
# ╭──────┬────────╮
|
||||||
# │ self │ subset │
|
# │ self │ subset │
|
||||||
# ╰──────┴────────╯
|
# ╰──────┴────────╯
|
||||||
|
|
||||||
|
# TODO move to code module
|
||||||
rwx_self_subset() {
|
rwx_self_subset() {
|
||||||
local argument file root
|
local argument file root
|
||||||
for argument in "${@}"; do
|
for argument in "${@}"; do
|
||||||
|
@ -51,6 +39,7 @@ rwx_self_subset() {
|
||||||
# │ self │ write │
|
# │ self │ write │
|
||||||
# ╰──────┴───────╯
|
# ╰──────┴───────╯
|
||||||
|
|
||||||
|
# TODO move to code module
|
||||||
rwx_self_write() {
|
rwx_self_write() {
|
||||||
local target="${1}"
|
local target="${1}"
|
||||||
if [ -n "${target}" ]; then
|
if [ -n "${target}" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue