diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-10 10:10:20 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-10 10:29:27 +0300 |
commit | 9243bc30891fc9db615560da8af83cf715664d9a (patch) | |
tree | e3ab9a5affb151993fc9caf895b5c924ffc552d4 /src/bin | |
parent | 958839c264b3ef36ef1bc74a4794fc383cc39292 (diff) | |
download | obnam2-9243bc30891fc9db615560da8af83cf715664d9a.tar.gz |
refactor: have ClientConfigWithoutPasswords know its filename
This allows Init::run to not need to be given it as an argument.
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/obnam.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/obnam.rs b/src/bin/obnam.rs index 0f3da30..4f4cd5b 100644 --- a/src/bin/obnam.rs +++ b/src/bin/obnam.rs @@ -27,9 +27,8 @@ fn main() -> anyhow::Result<()> { debug!("{:?}", opt); debug!("configuration: {:#?}", config); - let cfgname = config_filename(&opt); let result = if let Command::Init(init) = opt.cmd { - init.run(config.config(), &cfgname) + init.run(config.config()) } else { let config = load_config_with_passwords(&opt)?; match opt.cmd { |