diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-04 11:06:58 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-04 11:07:31 +0200 |
commit | 22202d176259d962abdbfdefef1e6213408df06c (patch) | |
tree | e36be72149099d6df45380a81c43c3c39d84fe80 /src/cmd/show_config.rs | |
parent | cda0e5bde3fa0c9c2cb0b4fa9f21fbb758acfbe1 (diff) | |
download | obnam2-22202d176259d962abdbfdefef1e6213408df06c.tar.gz |
feat: add obnam config subcommand
Diffstat (limited to 'src/cmd/show_config.rs')
-rw-r--r-- | src/cmd/show_config.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/show_config.rs b/src/cmd/show_config.rs new file mode 100644 index 0000000..b4f4cdc --- /dev/null +++ b/src/cmd/show_config.rs @@ -0,0 +1,7 @@ +use crate::client::ClientConfig; +use crate::error::ObnamError; + +pub fn show_config(config: &ClientConfig) -> Result<(), ObnamError> { + println!("{}", serde_json::to_string_pretty(config)?); + Ok(()) +} |