quartz-cli 0.4.3

The CLI way to build and test Rest APIs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;
use std::fs;
use std::path::Path;

fn main() {
    let out_dir = env::var_os("OUT_DIR").unwrap();
    let cwd = env::current_dir().unwrap();

    fs::create_dir_all(&out_dir).expect("Failed to create man directory");

    let src_path = Path::new(&cwd).join("man").join("man1").join("quartz.1");
    let dest_path = Path::new(&out_dir).join("quartz.1");

    fs::copy(src_path, dest_path).expect("Failed to copy manpage file");
}