diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-05-29 11:39:31 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-05-29 15:11:53 +0300 |
commit | 08b71890de3407acc323f09330ebe8a8ee2782ec (patch) | |
tree | 859d2a26dcc5517105bf5078f273fd24672ad756 /src/cmd/show_config.rs | |
parent | e839c5f1c93e1fe024a2656d319721a7b23c6461 (diff) | |
download | obnam2-08b71890de3407acc323f09330ebe8a8ee2782ec.tar.gz |
refactor: only have client config without passwords
This means the config is always the config, and not sometimes the
config or the config and passwords.
Also, there's no config option for encrypting, anymore. It will not be
optional now.
Diffstat (limited to 'src/cmd/show_config.rs')
-rw-r--r-- | src/cmd/show_config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/show_config.rs b/src/cmd/show_config.rs index 424e2ed..05e83c1 100644 --- a/src/cmd/show_config.rs +++ b/src/cmd/show_config.rs @@ -7,7 +7,7 @@ pub struct ShowConfig {} impl ShowConfig { pub fn run(&self, config: &ClientConfig) -> Result<(), ObnamError> { - println!("{}", serde_json::to_string_pretty(&config.config())?); + println!("{}", serde_json::to_string_pretty(config)?); Ok(()) } } |