panrelease 0.19.0

Utility to release software
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;
use std::path::{Path, PathBuf};
use anyhow::Result;

pub trait EnvVars {
    fn prefixed(prefix: &str) -> Result<HashMap<String, String>>;
}

pub trait FileSystem {
    fn read_string(path: &Path) -> Result<String>;
    fn write_string(path: &Path, content: &str) -> Result<()>;
    fn current_dir() -> Result<PathBuf>;
    fn is_a_dir(path: &Path) -> bool;
    fn is_a_file(path: &Path) -> bool;
}