Alois Mahdal
56aa66bf98
Run hook code in separate process
eval was little bit too much.
7 년 전
Alois Mahdal
f6333b29d8
Use more consistent and readable local variable names
7 년 전
Alois Mahdal
4387831ec8
Show only sub-commands starting with SATURNIN_LIBEXEC_PREFIX
This was always intended; sub-commands starting with dedicated prefix
is the mandatory convention.
7 년 전
Alois Mahdal
cb36dd3d7c
Add variable docstrings where missing
7 년 전
Alois Mahdal
dbe8b114f5
Reformat _saturnin__conf_usage() to 79 character width
As recommended by Shaturnin style guide:
https://github.com/AloisMahdal/shellfu/blob/master/notes/style.md
7 년 전
Alois Mahdal
e617c5b27f
Clarify saturnin__wraphook() docstring
7 년 전
Alois Mahdal
2f28cdf75d
Reformat docstrings to 76 character width
As recommended by Shellfu style:
https://github.com/AloisMahdal/shellfu/blob/master/notes/style.md
7 년 전
Alois Mahdal
3b0b91d3b5
Be more informative about saturnin__runhook()
7 년 전
Alois Mahdal
808357690c
Use new config file finder when loading config file
7 년 전
Alois Mahdal
00f7e08558
Add generic config file finder
This should be useful for cases when a sub-command wants to maintain
non-INI config locations.
7 년 전
Alois Mahdal
f027235dc3
Add module-version meta-data for future Shellfu generations
7 년 전
Alois Mahdal
89f01badef
Add saturnin__bug() to help developers help users report bugs
7 년 전
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.
7 년 전
Alois Mahdal
66962e9d90
Include SATURNIN_APP_VERSION in debug output
7 년 전
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 년 전
Alois Mahdal
5a16d0c943
Enable --help (friendly usage()) in saturnin__conf()
8 년 전
Alois Mahdal
152c791a99
Add missing docstrings
8 년 전
Alois Mahdal
2f2d613e9a
Just pass args to mkusage(); no need for --wanted
We're scratching right ear with left hand...
8 년 전
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 년 전
Alois Mahdal
0979beb943
Add usage message to saturnin-conf
8 년 전
Alois Mahdal
a9c5485148
Have saturnin-conf exit with useful statuses
8 년 전
Alois Mahdal
67bd2e79f6
Hack completion code together to simplify updates
8 년 전
Alois Mahdal
593fb0348d
Fix usage message not showing short options
8 년 전
Alois Mahdal
69360a5eae
Clean up main() case tables
8 년 전
Alois Mahdal
07a9764014
Shorten internal subcommand
Will make code less ugly at places.
8 년 전
Alois Mahdal
b800648186
Merge usage and help to --help
Be nicer to people who get help by trial and error.
8 년 전
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.
8 년 전
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.
8 년 전
Alois Mahdal
6d787ff043
Remove obsolete `ffrun` sub-command
8 년 전
Alois Mahdal
4173db5f3c
Add last git hash from application build time
8 년 전
Alois Mahdal
6b4cfeb11f
Use saturnin__get for --version-semver
8 년 전
Alois Mahdal
aba45c998d
Add --saturnin-get-* for printing Saturnin internal info
8 년 전
Alois Mahdal
e1eacaa297
Move main() to the saturnin.sh module
8 년 전
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 년 전
Alois Mahdal
594e675521
Move usage() to saturnin.sh module
8 년 전
Alois Mahdal
66c6c62c54
Add optional codename to version info
8 년 전
Alois Mahdal
99770e4f06
Move version printing routine to saturnin.sh module
8 년 전
Alois Mahdal
46c1ab6781
Use more accurate variable name
8 년 전
Alois Mahdal
f51f9839ce
Add missing docstrings
8 년 전
Alois Mahdal
ed7847f49b
Use proper naming scheme
8 년 전
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 년 전
Alois Mahdal
91a55e625b
Update after renaming of ffoo to shellfu
8 년 전
Alois Mahdal
8a5dd0f421
Make saturnin subcommand more portable
9 년 전
Alois Mahdal
6e128ebffd
Apply ShellCheck advice
9 년 전
Alois Mahdal
c825d0bbde
Use mkhelp to print help message
9 년 전
Alois Mahdal
9da376f256
Rename saturnin_common to saturnin_meta
The routines are all basically related to the meta-command functions.
9 년 전
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 년 전
Alois Mahdal
cf82cfa5f1
Move pre-post-hook wrapping code to a routine
9 년 전
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 년 전