diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-11-18 08:47:37 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-11-18 08:47:37 +0200 |
commit | b5ddc105852b63651916f322ce855baf61d129d0 (patch) | |
tree | d6e6ee6ca6f0ecfbba1311879e87e77a720a49c9 /src/cmd/list.rs | |
parent | 24ffcb0083750bb77963a1ab8e3205290c2c7190 (diff) | |
download | obnam2-b5ddc105852b63651916f322ce855baf61d129d0.tar.gz |
feat! change client config to take a base URL instead of host, port
Diffstat (limited to 'src/cmd/list.rs')
-rw-r--r-- | src/cmd/list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/list.rs b/src/cmd/list.rs index 1972144..1741bce 100644 --- a/src/cmd/list.rs +++ b/src/cmd/list.rs @@ -3,7 +3,7 @@ use std::path::Path; pub fn list(config: &Path) -> anyhow::Result<()> { let config = ClientConfig::read_config(&config)?; - let client = BackupClient::new(&config.server_name, config.server_port)?; + let client = BackupClient::new(&config.server_url)?; for gen_id in client.list_generations()? { println!("{}", gen_id); |