diff options
| author | Emīls Piņķis <emils@mullvad.net> | 2018-08-28 16:45:07 +0100 |
|---|---|---|
| committer | Emīls Piņķis <emils@mullvad.net> | 2018-08-29 16:28:17 +0100 |
| commit | 0dd43272e4473dbd01ef39ab8bfbb454c47487da (patch) | |
| tree | b72f5e2171a425199677820de8c031d7eabc5c9b /mullvad-cli/src/cmds/version.rs | |
| parent | c3104f8a5ec79827c56e71732e867d836428357b (diff) | |
| download | mullvadvpn-0dd43272e4473dbd01ef39ab8bfbb454c47487da.tar.xz mullvadvpn-0dd43272e4473dbd01ef39ab8bfbb454c47487da.zip | |
Change mullvad-cli to use new jsonrpc client
Diffstat (limited to 'mullvad-cli/src/cmds/version.rs')
| -rw-r--r-- | mullvad-cli/src/cmds/version.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mullvad-cli/src/cmds/version.rs b/mullvad-cli/src/cmds/version.rs index c3adca3040..2277e57d68 100644 --- a/mullvad-cli/src/cmds/version.rs +++ b/mullvad-cli/src/cmds/version.rs @@ -1,7 +1,5 @@ use clap; -use {Command, Result}; - -use mullvad_ipc_client::DaemonRpcClient; +use {new_rpc_client, Command, Result}; pub struct Version; @@ -16,7 +14,7 @@ impl Command for Version { } fn run(&self, _: &clap::ArgMatches) -> Result<()> { - let mut rpc = DaemonRpcClient::new()?; + let mut rpc = new_rpc_client()?; let current_version = rpc.get_current_version()?; println!("Current version: {}", current_version); let version_info = rpc.get_version_info()?; |
