diff options
| author | Robin Gögge <r.goegge@outlook.com> | 2020-11-21 21:21:18 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2020-11-23 11:29:17 +0100 |
| commit | 410cf70afb817488233dce1018d38fe734665d53 (patch) | |
| tree | 1cc8350236ca23eebe181892a59e06256d78c088 | |
| parent | 7fbb556559912cfcbf3f509af78dcd315116ab69 (diff) | |
| download | mullvadvpn-410cf70afb817488233dce1018d38fe734665d53.tar.xz mullvadvpn-410cf70afb817488233dce1018d38fe734665d53.zip | |
Rename `mullvad relay set relay` to `mullvad relay set hostname`
Closes #2267.
Signed-off-by: Robin Gögge <r.goegge@outlook.com>
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | mullvad-cli/src/cmds/relay.rs | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c7302f5ac7..149addb96e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ Line wrap the file at 100 chars. Th - Remove WireGuard keys during uninstallation after the firewall is unlocked. - Randomly select addresses to use for communicating with the API. - Bundle a list of API addresses to use instead of assuming that the primary address can be reached. +- Rename CLI subcommand `mullvad relay set relay` to `mullvad relay set hostname`. #### Android - Remove the Quit button. diff --git a/mullvad-cli/src/cmds/relay.rs b/mullvad-cli/src/cmds/relay.rs index b9948e5fb4..ab1ea41fe1 100644 --- a/mullvad-cli/src/cmds/relay.rs +++ b/mullvad-cli/src/cmds/relay.rs @@ -117,7 +117,7 @@ impl Command for Relay { command to show available alternatives.") ) .subcommand( - clap::SubCommand::with_name("relay") + clap::SubCommand::with_name("hostname") .about("Set the exact relay to use via its hostname. Shortcut for \ 'location <country> <city> <hostname>'.") .arg( @@ -203,8 +203,8 @@ impl Relay { self.set_custom(custom_matches).await } else if let Some(location_matches) = matches.subcommand_matches("location") { self.set_location(location_matches).await - } else if let Some(relay_matches) = matches.subcommand_matches("relay") { - self.set_relay(relay_matches).await + } else if let Some(relay_matches) = matches.subcommand_matches("hostname") { + self.set_hostname(relay_matches).await } else if let Some(provider_matches) = matches.subcommand_matches("provider") { self.set_provider(provider_matches).await } else if let Some(tunnel_matches) = matches.subcommand_matches("tunnel") { @@ -334,7 +334,7 @@ impl Relay { key } - async fn set_relay(&self, matches: &clap::ArgMatches<'_>) -> Result<()> { + async fn set_hostname(&self, matches: &clap::ArgMatches<'_>) -> Result<()> { let hostname = matches.value_of("hostname").unwrap(); let countries = Self::get_filtered_relays().await?; |
