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

44 lines
913 B
Plaintext

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