rustic/tests
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
..
completions-fixtures prepare release 0.8.1 (#1231) 2024-09-08 21:28:13 +02:00
generated feat(config): Add hooks (#1218) 2024-10-05 01:58:55 +00:00
hooks-fixtures feat(config): Add hooks (#1218) 2024-10-05 01:58:55 +00:00
show-config-fixtures feat(config): Add hooks (#1218) 2024-10-05 01:58:55 +00:00
snapshots feat(config): Add hooks (#1218) 2024-10-05 01:58:55 +00:00
backup_restore.rs test: refactor integration tests to assert_cmd and predicates, test all configs in config subdirectory (#1060) 2024-02-29 20:04:19 +00:00
completions.rs Refactor to library and cli application part 2023-06-06 08:51:43 +02:00
config.rs test: refactor integration tests to assert_cmd and predicates, test all configs in config subdirectory (#1060) 2024-02-29 20:04:19 +00:00
hooks.rs feat(config): Add hooks (#1218) 2024-10-05 01:58:55 +00:00
show-config.rs feat(config): Add hooks (#1218) 2024-10-05 01:58:55 +00:00