Commit Graph

7 Commits

Author SHA1 Message Date
aawsome
cb3903b9dc
feat(config): Add hooks (#1218)
This PR adds `run-before`, `run-after`, `run-failure` and `run-finally`
hooks for:
- all commands in the `[global.hooks]` config profile section
- commands accessing the repository in the `[repository.hooks]` config
profile section
- the `backup` command specifically in the `[backup.hooks]` config
profile section
- specific backup sources in the `[backup.snapshots.hooks]` section

Note: This PR includes only calling the given commands. If there is the
wish for supplying information to the commands (env variables or
parameter substitution), this should be covered by a separate feature
request/PR.

closes #902

---------

Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-10-05 01:58:55 +00:00
simonsan
fbf4c2edfa
feat(commands): add a docs command to easily access the user, dev and config documentation (#1276)
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
2024-10-02 07:15:34 +00:00
aawsome
ffe05f58d0
fix: return exitcode (#1220)
rustic now returns an error code for failing command.

Note: Some command do not fail yet fail in every cases user would expect
is. Most notably the `check` ckommand producing `error` messages may
still return error code 0.

closes #927
2024-09-07 05:28:59 +00:00
aawsome
536d1c1fac
fix: log config file logs after reading config files (#961) 2023-12-03 23:19:02 +01:00
zxcat
0df8922090
Fix term log level limiter when log-file option set (#913) 2023-10-20 04:36:46 +00:00
aawsome
432380e157
Allow setting env variables in config file (#866)
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
2023-09-18 21:44:57 +00:00
simonsan
b698cc57fc Refactor to library and cli application part
Co-authored-by: Alexander Weiss <alex@weissfam.de>
2023-06-06 08:51:43 +02:00