summaryrefslogtreecommitdiff
path: root/src/cmd/show_config.rs
blob: 05e83c1ceff8bb796bc585aa884a7b96b6bf2eea (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)?);
        Ok(())
    }
}