svccat 1.5.0

Detect drift between your declared service catalog and what actually lives in the repo.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fs;
use std::path::Path;

/// Create an empty file at the given path, creating directories as needed.
pub fn touch(root: &Path, rel_path: &str) {
    let full = root.join(rel_path);
    if let Some(parent) = full.parent() {
        fs::create_dir_all(parent).unwrap();
    }
    fs::File::create(&full).unwrap();
}

/// Write a manifest to the default location (services.yaml).
pub fn write_manifest(root: &Path, content: &str) {
    fs::write(root.join("services.yaml"), content).unwrap();
}