2022-10-28 12:03:01 +00:00
|
|
|
---
|
2022-11-01 12:38:52 +00:00
|
|
|
source: hooked-config/tests/serialize.rs
|
2022-10-28 12:03:01 +00:00
|
|
|
expression: to_string_pretty(&config).unwrap()
|
|
|
|
---
|
|
|
|
[general]
|
2022-11-01 12:38:52 +00:00
|
|
|
config = 'Hooked.toml'
|
2022-10-28 12:03:01 +00:00
|
|
|
directory = 'hooks'
|
|
|
|
|
|
|
|
[[pre_commit]]
|
2022-11-20 11:20:59 +00:00
|
|
|
git_staged = ['*.txt']
|
2022-10-28 12:03:01 +00:00
|
|
|
name = 'Command Test'
|
|
|
|
on_failure = 'continue'
|
|
|
|
command = 'exit 0'
|
|
|
|
|
|
|
|
[[pre_commit]]
|
2022-11-20 11:20:59 +00:00
|
|
|
git_staged = []
|
2022-10-28 12:03:01 +00:00
|
|
|
name = 'Script Test'
|
|
|
|
on_failure = 'stop'
|
|
|
|
script = 'test.sh'
|
|
|
|
|