malvin 0.1.6

Non-interactive CLI agent, via Cursor ACP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Test helpers for `.malvin/checks` (keeps `test_utils` under kiss line limits).

#[cfg(test)]
use std::path::Path;

#[cfg(test)]
pub fn seed_malvin_checks(work: &Path, content: &str) {
    std::fs::create_dir_all(work.join(crate::MALVIN_DIR)).expect("mkdir .malvin");
    std::fs::write(crate::malvin_checks_path(work), content).expect("write .malvin/checks");
}

#[cfg(test)]
pub fn seed_malvin_config(work: &Path, content: &str) {
    std::fs::create_dir_all(work.join(crate::MALVIN_DIR)).expect("mkdir .malvin");
    std::fs::write(crate::malvin_config_path(work), content).expect("write .malvin/config.toml");
}