Alois Mahdal
d4b9abeaaf
Add new 'menu' sub-command
New command allows to define flexible menus in INI files.
Single INI root now contains all menu definitons. Each menu consists of
item generator, selector and consumer, which are checked and chained
together.
Alternatively to specifying a generator, items can be listed right in
the INI section.
vor 9 Jahren
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.
vor 9 Jahren
Alois Mahdal
cf82cfa5f1
Move pre-post-hook wrapping code to a routine
vor 9 Jahren
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.
vor 9 Jahren
Alois Mahdal
066c22b204
Fortify hook routine
Add checks for syntax errors and missing SATURNIN_SUBCOMMAND. In both
cases, ignore the hook.
vor 9 Jahren
Alois Mahdal
89b98a72f9
Update forgotten layout setting command
vor 9 Jahren
Alois Mahdal
c80c7d4a00
Use inigrep__mkpath to assemble FFOO_INIGREP_PATH
Minimize the "built part" and code repetition among saturnin "clones".
vor 9 Jahren
Alois Mahdal
ad3a74047a
Move colon delimiting to generator
vor 9 Jahren
Alois Mahdal
10281e34c2
Fix argument debug
vor 9 Jahren
Alois Mahdal
e138ad678b
Add query subcommand (only is_muted supported so far)
vor 9 Jahren
Alois Mahdal
a1d856c956
Avoid using multi-line values for style items
vor 9 Jahren
Alois Mahdal
1303a48cfa
Add internal (plumbing) ffrun wrapper
To allow for experimenting with functions from embedded library.
vor 9 Jahren
Alois Mahdal
7f630aeb92
Add internal (plumbing) commands from ffoom
This should help test and manage embedded Fastfoo library
vor 9 Jahren
Alois Mahdal
b2eb405f21
Fix confusing docstring
vor 9 Jahren
Alois Mahdal
4494cc4dad
Move clip selection to separate function
vor 9 Jahren
Alois Mahdal
78d5768ed8
Merge mkusage calls
mkusage exits by default so it's intended to exist as one call per
process only.
vor 9 Jahren
Alois Mahdal
3d7aab77f2
Port to ffoo v0.8: usage_is renamed
vor 9 Jahren
Alois Mahdal
47bfddf9f3
Port to ffoo v0.8: config.sh renamed
vor 9 Jahren
Alois Mahdal
98da2f27f8
Fall back to default mode if not specified in INI
If for certaiun group a mode is not specified, fall back to
a value inhertited from environment, or eventually to 644.
vor 9 Jahren
Alois Mahdal
8aa0b33a9e
Add bash completion module
vor 9 Jahren
Alois Mahdal
61c7eb02e1
Make use of FFOO_PRETTY_USAGE mode
vor 9 Jahren
Alois Mahdal
6af447c64f
Add internal subcommand _ls_subcommands
vor 9 Jahren
Alois Mahdal
12b62db27a
Port to ffoo v0.8: exit.sh renamed
vor 9 Jahren
Alois Mahdal
6f23cfc46e
Explicitly sort modules (by C locale)
vor 9 Jahren
Alois Mahdal
2bf4170cd7
Move out routine to find sub-modules
vor 9 Jahren
Alois Mahdal
84b11f1ffa
Use more informative function name
vor 9 Jahren
Alois Mahdal
1b7d7e32f1
Tidy up variable setting code
* Add docstring,
* add explanations for local variable names,
* separate export declarations,
* sort globals alphabetically,
* add built part delimiters,
* quote paths properly.
vor 9 Jahren
Alois Mahdal
61c5e18427
Do not make up FFOO_PATH--take it from mkit directly
vor 9 Jahren
Alois Mahdal
0ec0029109
Update mkit
vor 9 Jahren
Alois Mahdal
77dd7abee3
Rename variable to reflect the path is being provided by saturnin
vor 9 Jahren
Alois Mahdal
e4cc2d414f
Use consistent format in config.mk
vor 9 Jahren
Alois Mahdal
09a0a735c9
Use inigrep directly inside saturnin
... turns out it's faster (surprise! ;))
vor 9 Jahren
Alois Mahdal
5cf1e53792
Join hooks from all paths
Due to inigrep limitation, we cannot automatically cherry-pick hook.ini
based on where the hook is found--we can only have all hooks in one
file, or use join strategy.
vor 9 Jahren
Alois Mahdal
6279892bdf
Use custom name for tempdir
vor 9 Jahren
Alois Mahdal
450c42636d
Remove debug pipes for production
vor 9 Jahren
Alois Mahdal
6f16e8862b
Bump version
vor 9 Jahren
Alois Mahdal
eaf094fe08
Remove irrelevant sub-command `ip`
Conventional ip wrapper -- not desktop-related.
vor 9 Jahren
Alois Mahdal
5f91e14199
Remove irrelevant sub-command `watch`
A debugging utility -- not desktop-related.
vor 9 Jahren
Alois Mahdal
ccdec63cb0
Remove irrelevant sub-command `czrates`
Conventional curl wrapper -- not desktop-related.
vor 9 Jahren
Alois Mahdal
477667748b
Remove irrelevant sub-command `push`
Conventional rsync wrapper -- not desktop-related.
vor 9 Jahren
Alois Mahdal
0e5cacf22a
Remove irrelevant sub-command `revert`
Conventional virsh wrapper -- not desktop-related.
vor 9 Jahren
Alois Mahdal
d2eef199be
Bump version
vor 9 Jahren
Alois Mahdal
a0d7664f08
Implement support for sub-command hooks
Add section like this to hook.ini:
[hook.mycomm]
pre = echo $SATURNIN_SUBCOMMAND will run soon
pre = echo $SATURNIN_SUBCOMMAND is almost running
post = echo $SATURNIN_SUBCOMMAND has finished now
vor 9 Jahren
Alois Mahdal
dfd3810eee
Move saturnin-conf to built-in
vor 9 Jahren
Alois Mahdal
8470af0975
Improve subcommand listing for help string
vor 9 Jahren
Alois Mahdal
a3216edab4
Quote subcommand on input
vor 9 Jahren
Alois Mahdal
f9af1886a6
Fix debugging of arg list
"@" breaks the string to several arguments, which is not what we want
here
vor 9 Jahren
Alois Mahdal
269a1590ae
Bump version
vor 9 Jahren
Alois Mahdal
20fb50dd2c
Move keyboard layout control to saturnin-kb
An improved version of previous code
vor 9 Jahren
Alois Mahdal
6a6a9770d5
Move volume control to separate subcommand
vor 9 Jahren