Alois Mahdal
f027235dc3
Add module-version meta-data for future Shellfu generations
8 år sedan
Alois Mahdal
89f01badef
Add saturnin__bug() to help developers help users report bugs
8 år sedan
Alois Mahdal
74f91edc58
No need to print SATURNIN_LIBEXEC in debug
The related functionality is stable already and the path is easy to find
out using package manager.
8 år sedan
Alois Mahdal
66962e9d90
Include SATURNIN_APP_VERSION in debug output
8 år sedan
Alois Mahdal
c252ad53ed
Convert to pure shellfu library
Move satcmd to other repo and distribute saturnin as a stand-alone
shellfu library. Users can import just the library instead of
embedding it inside their source tree, which enables them to delegate
part of the job to package manager.
8 år sedan
Alois Mahdal
5a16d0c943
Enable --help (friendly usage()) in saturnin__conf()
8 år sedan
Alois Mahdal
152c791a99
Add missing docstrings
8 år sedan
Alois Mahdal
2f2d613e9a
Just pass args to mkusage(); no need for --wanted
We're scratching right ear with left hand...
8 år sedan
Alois Mahdal
615a4b38d2
Fix inigrep query quoting
Absence of quotes breaks queries with spaces. We're already taking care
of files (implicit or given on command line).
8 år sedan
Alois Mahdal
0979beb943
Add usage message to saturnin-conf
9 år sedan
Alois Mahdal
a9c5485148
Have saturnin-conf exit with useful statuses
9 år sedan
Alois Mahdal
67bd2e79f6
Hack completion code together to simplify updates
9 år sedan
Alois Mahdal
593fb0348d
Fix usage message not showing short options
9 år sedan
Alois Mahdal
69360a5eae
Clean up main() case tables
9 år sedan
Alois Mahdal
07a9764014
Shorten internal subcommand
Will make code less ugly at places.
9 år sedan
Alois Mahdal
b800648186
Merge usage and help to --help
Be nicer to people who get help by trial and error.
9 år sedan
Alois Mahdal
bcad50d4f2
Update for Shellfu v0.9.x
The new Shellfu brings some large changes. Among what touches us
directly:
* Most global variables were renamed (removing SHELLFU_* prefix).
* inigrep API has been revamped and the file merging/guessing
feature has been dropped; it now belongs to us.
9 år sedan
Alois Mahdal
84d003e3a1
Remove redundant debug info
subcommand (binary) and its arguments are both already is debug-shown
inside saturnin__runsc; cases when that does not get called are normally
not interesting.
9 år sedan
Alois Mahdal
6d787ff043
Remove obsolete `ffrun` sub-command
9 år sedan
Alois Mahdal
4173db5f3c
Add last git hash from application build time
9 år sedan
Alois Mahdal
6b4cfeb11f
Use saturnin__get for --version-semver
9 år sedan
Alois Mahdal
aba45c998d
Add --saturnin-get-* for printing Saturnin internal info
9 år sedan
Alois Mahdal
e1eacaa297
Move main() to the saturnin.sh module
9 år sedan
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.
9 år sedan
Alois Mahdal
594e675521
Move usage() to saturnin.sh module
9 år sedan
Alois Mahdal
66c6c62c54
Add optional codename to version info
9 år sedan
Alois Mahdal
99770e4f06
Move version printing routine to saturnin.sh module
9 år sedan
Alois Mahdal
46c1ab6781
Use more accurate variable name
9 år sedan
Alois Mahdal
f51f9839ce
Add missing docstrings
9 år sedan
Alois Mahdal
ed7847f49b
Use proper naming scheme
9 år sedan
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.
9 år sedan
Alois Mahdal
91a55e625b
Update after renaming of ffoo to shellfu
9 år sedan
Alois Mahdal
8a5dd0f421
Make saturnin subcommand more portable
10 år sedan
Alois Mahdal
6e128ebffd
Apply ShellCheck advice
10 år sedan
Alois Mahdal
c825d0bbde
Use mkhelp to print help message
10 år sedan
Alois Mahdal
9da376f256
Rename saturnin_common to saturnin_meta
The routines are all basically related to the meta-command functions.
10 år sedan
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.
10 år sedan
Alois Mahdal
cf82cfa5f1
Move pre-post-hook wrapping code to a routine
10 år sedan
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.
10 år sedan