Alois Mahdal
e1eacaa297
Move main() to the saturnin.sh module
8 gadus atpakaļ
Alois Mahdal
b88948ca3d
Avoid exporting SATURNIN_SUBCOMMAND directly
Scripts may need it (eg. if using `saturnin__runhook()`) but exporting
it in the middle of main script makes it harder to see the scope
clearly and also is ugly.
Tweak the saturnin__runsc syntax so that it's not dependent on this
being global and export the SATURNIN_SUBCOMMAND only for the actual
subcommand binary call.
8 gadus atpakaļ
Alois Mahdal
594e675521
Move usage() to saturnin.sh module
8 gadus atpakaļ
Alois Mahdal
66c6c62c54
Add optional codename to version info
8 gadus atpakaļ
Alois Mahdal
99770e4f06
Move version printing routine to saturnin.sh module
8 gadus atpakaļ
Alois Mahdal
46c1ab6781
Use more accurate variable name
8 gadus atpakaļ
Alois Mahdal
f51f9839ce
Add missing docstrings
8 gadus atpakaļ
Alois Mahdal
ed7847f49b
Use proper naming scheme
8 gadus atpakaļ
Alois Mahdal
2fb1fdbcf3
Rename saturnin_meta module
Since saturnin's dedication to be "meta-command" builder, the distinction
between "meta" and something else does not make much sense.
8 gadus atpakaļ
Alois Mahdal
91a55e625b
Update after renaming of ffoo to shellfu
8 gadus atpakaļ
Alois Mahdal
8a5dd0f421
Make saturnin subcommand more portable
9 gadus atpakaļ
Alois Mahdal
6e128ebffd
Apply ShellCheck advice
9 gadus atpakaļ
Alois Mahdal
c825d0bbde
Use mkhelp to print help message
9 gadus atpakaļ
Alois Mahdal
9da376f256
Rename saturnin_common to saturnin_meta
The routines are all basically related to the meta-command functions.
9 gadus atpakaļ
Alois Mahdal
a13a0c9ee1
Do not wrap every subcommand
Sub-commands in libexec must use saturnin_wraphook if they want pre/post
hook, or may use saturnin_runhook to run their own hooks as they wish.
9 gadus atpakaļ
Alois Mahdal
cf82cfa5f1
Move pre-post-hook wrapping code to a routine
9 gadus atpakaļ
Alois Mahdal
6abb8c6621
Move common saturnin routines to a module
This module is intended to be moved around with saturnin, but unlike
main meta-command (bin/saturnin.skel), it should not be necessary to
rename it or edit to adapt to new project.
9 gadus atpakaļ