summaryrefslogtreecommitdiff
path: root/src/cmd/show_config.rs
blob: 424e2edda2d187fbb479a622607f24f70fd85fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::config::ClientConfig;
use crate::error::ObnamError;
use structopt::StructOpt;

#[derive(Debug, StructOpt)]
pub struct ShowConfig {}

impl ShowConfig {
    pub fn run(&self, config: &ClientConfig) -> Result<(), ObnamError> {
        println!("{}", serde_json::to_string_pretty(&config.config())?);
        Ok(())
    }
}