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

49 lines
1.0 KiB
Plaintext

---
source: hooked-config/tests/parsing.rs
expression: config
---
Config {
general: General {
config: "Hooked.toml",
directory: "hooked",
noise_level: Minimal,
template: Some(
"test.sh",
),
},
pre_commit: [
PreCommit {
name: Some(
"Pre Commit 1",
),
noise_level: None,
on_failure: Continue,
staged: [
"*.txt",
],
task: Task {
command: Some(
"exit 0",
),
script: None,
},
},
PreCommit {
name: Some(
"Pre Commit 2",
),
noise_level: Some(
Loud,
),
on_failure: Stop,
staged: [],
task: Task {
command: None,
script: Some(
"test.sh",
),
},
},
],
}