code/check
This commit is contained in:
parent
d7bdca5f12
commit
4a2a24a1b6
2 changed files with 18 additions and 14 deletions
18
sh/code.sh
18
sh/code.sh
|
@ -1,6 +1,10 @@
|
||||||
# code
|
# code
|
||||||
# module
|
# module
|
||||||
|
|
||||||
|
# ╭──────╮
|
||||||
|
# │ code │
|
||||||
|
# ╰──────╯
|
||||||
|
|
||||||
# show the cached code
|
# show the cached code
|
||||||
#= rc
|
#= rc
|
||||||
rwx_code() {
|
rwx_code() {
|
||||||
|
@ -18,3 +22,17 @@ rwx_code_constants() {
|
||||||
rwx_code_functions() {
|
rwx_code_functions() {
|
||||||
echo "${_rwx_code_functions}"
|
echo "${_rwx_code_functions}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ╭──────┬───────╮
|
||||||
|
# │ code │ check │
|
||||||
|
# ╰──────┴───────╯
|
||||||
|
|
||||||
|
# check source code
|
||||||
|
rwx_code_check() {
|
||||||
|
# check format
|
||||||
|
rwx_log
|
||||||
|
rwx_shfmt "${RWX_ROOT_SYSTEM}"
|
||||||
|
# check syntax
|
||||||
|
rwx_log
|
||||||
|
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
|
||||||
|
}
|
||||||
|
|
14
sh/self.sh
14
sh/self.sh
|
@ -25,20 +25,6 @@ rwx_doc() {
|
||||||
--file "${RWX_AWK}"
|
--file "${RWX_AWK}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────┬───────╮
|
|
||||||
# │ self │ check │
|
|
||||||
# ╰──────┴───────╯
|
|
||||||
|
|
||||||
# check source code
|
|
||||||
rwx_self_check() {
|
|
||||||
# check format
|
|
||||||
rwx_log
|
|
||||||
rwx_shfmt "${RWX_ROOT_SYSTEM}"
|
|
||||||
# check syntax
|
|
||||||
rwx_log
|
|
||||||
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
|
|
||||||
}
|
|
||||||
|
|
||||||
# ╭──────┬──────────╮
|
# ╭──────┬──────────╮
|
||||||
# │ self │ commands │
|
# │ self │ commands │
|
||||||
# ╰──────┴──────────╯
|
# ╰──────┴──────────╯
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue