hooked/hooked-config/tests/snapshots/parsing__with-hooks.snap

47 lines
998 B
Plaintext
Raw Normal View History

2022-10-28 12:06:03 +00:00
---
2022-11-01 12:38:52 +00:00
source: hooked-config/tests/parsing.rs
2022-10-28 12:06:03 +00:00
expression: config
---
Config {
general: General {
2022-11-01 12:38:52 +00:00
config: "Hooked.toml",
2022-10-28 12:06:03 +00:00
directory: "hooked",
noise_level: Minimal,
2022-11-04 18:00:09 +00:00
template: Some(
"test.sh",
),
2022-10-28 12:06:03 +00:00
},
pre_commit: [
PreCommit {
name: Some(
"Pre Commit 1",
),
noise_level: Quiet,
2022-10-28 12:06:03 +00:00
on_failure: Continue,
2022-11-27 16:29:44 +00:00
staged: [
"*.txt",
],
2022-10-28 12:06:03 +00:00
task: Task {
command: Some(
"exit 0",
),
script: None,
},
},
PreCommit {
name: Some(
"Pre Commit 2",
),
noise_level: Loud,
2022-10-28 12:06:03 +00:00
on_failure: Stop,
2022-11-27 16:29:44 +00:00
staged: [],
2022-10-28 12:06:03 +00:00
task: Task {
command: None,
script: Some(
"test.sh",
),
},
},
],
}