summaryrefslogtreecommitdiff
path: root/src/cmd/dump.rs
blob: d0a5e7f905874c8f1aba8ff6bde79b0275b3112d (plain)
1
2
3
4
5
6
7
8
9
10
use crate::Config;
use log::trace;
use std::path::Path;

pub fn dump(filename: &Path) -> anyhow::Result<()> {
    trace!("dump: filename={:?}", filename);
    let config = Config::read(filename)?;
    println!("{}", serde_json::to_string(&config)?);
    Ok(())
}