planner / templates/cli-tool/src/config.rs.tmpl

raw file 264 bytes
use serde::Deserialize;
use std::path::PathBuf;

#[derive(Debug, Deserialize)]
pub struct Config {
    pub verbose: bool,
}

pub fn load(path: Option<PathBuf>) -> anyhow::Result<Config> {
    // TODO: load from file or defaults
    Ok(Config { verbose: false })
}