self/check
This commit is contained in:
parent
2c3167178e
commit
4482928678
1 changed files with 14 additions and 6 deletions
20
sh/self.sh
20
sh/self.sh
|
@ -1,3 +1,17 @@
|
|||
# ╭──────┬───────╮
|
||||
# │ 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 │
|
||||
# ╰──────┴──────────╯
|
||||
|
@ -44,12 +58,6 @@ rwx_self_help() {
|
|||
rwx_self_init() {
|
||||
# run interactive extras
|
||||
if rwx_shell_interactive; then
|
||||
# check format
|
||||
rwx_log
|
||||
rwx_shfmt "${RWX_ROOT_SYSTEM}"
|
||||
# check syntax
|
||||
rwx_log
|
||||
rwx_shellcheck "${RWX_ROOT_SYSTEM}"
|
||||
# help
|
||||
rwx_log
|
||||
rwx_self_help
|
||||
|
|
Loading…
Add table
Reference in a new issue