summaryrefslogtreecommitdiff
path: root/src/cmd/show_config.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-04-09 11:54:19 +0300
committerLars Wirzenius <liw@liw.fi>2021-04-09 17:17:35 +0300
commitd0b0245edbb2f6ed8285358d83b98f3334bf1b12 (patch)
tree988f72832b8a5015f4dbfb49473eba022d089666 /src/cmd/show_config.rs
parent2d6c1c81bfb1c0be8dfaced1c70e825e46c66430 (diff)
downloadobnam2-d0b0245edbb2f6ed8285358d83b98f3334bf1b12.tar.gz
feat: add "obnam init" subcommand
This reads a passphrase and derives two passwords from that, and stores them next to the configuration file. The passwords aren't yet used for anything, that will come later.
Diffstat (limited to 'src/cmd/show_config.rs')
-rw-r--r--src/cmd/show_config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/show_config.rs b/src/cmd/show_config.rs
index b4f4cdc..8acd1c8 100644
--- a/src/cmd/show_config.rs
+++ b/src/cmd/show_config.rs
@@ -2,6 +2,6 @@ use crate::client::ClientConfig;
use crate::error::ObnamError;
pub fn show_config(config: &ClientConfig) -> Result<(), ObnamError> {
- println!("{}", serde_json::to_string_pretty(config)?);
+ println!("{}", serde_json::to_string_pretty(&config.config())?);
Ok(())
}