summaryrefslogtreecommitdiffhomepage
path: root/mullvad-cli
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-06-27 11:31:03 +0200
committerLinus Färnstrand <linus@mullvad.net>2018-06-27 11:31:03 +0200
commitfea7311975601287faed8182d48fa576483d384b (patch)
tree35324dd9c34f92ba713870fbae2320ea2063081c /mullvad-cli
parentb3b4b3d11005e7d1d03eea5aae7cdf34ae8f96dd (diff)
parent4efad979eed85918384a311c4d00ad70b806c921 (diff)
downloadmullvadvpn-fea7311975601287faed8182d48fa576483d384b.tar.xz
mullvadvpn-fea7311975601287faed8182d48fa576483d384b.zip
Merge branch 'remove-shutdown-from-cli'
Diffstat (limited to 'mullvad-cli')
-rw-r--r--mullvad-cli/src/cmds/mod.rs4
-rw-r--r--mullvad-cli/src/cmds/shutdown.rs22
2 files changed, 0 insertions, 26 deletions
diff --git a/mullvad-cli/src/cmds/mod.rs b/mullvad-cli/src/cmds/mod.rs
index 3b6e26a2a8..4e54aadbca 100644
--- a/mullvad-cli/src/cmds/mod.rs
+++ b/mullvad-cli/src/cmds/mod.rs
@@ -16,9 +16,6 @@ pub use self::disconnect::Disconnect;
mod relay;
pub use self::relay::Relay;
-mod shutdown;
-pub use self::shutdown::Shutdown;
-
mod lan;
pub use self::lan::Lan;
@@ -35,7 +32,6 @@ pub fn get_commands() -> HashMap<&'static str, Box<Command>> {
Box::new(Status),
Box::new(Connect),
Box::new(Disconnect),
- Box::new(Shutdown),
Box::new(Relay),
Box::new(Lan),
Box::new(Tunnel),
diff --git a/mullvad-cli/src/cmds/shutdown.rs b/mullvad-cli/src/cmds/shutdown.rs
deleted file mode 100644
index f56ba0a972..0000000000
--- a/mullvad-cli/src/cmds/shutdown.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use clap;
-use {Command, Result};
-
-use mullvad_ipc_client::DaemonRpcClient;
-
-pub struct Shutdown;
-
-impl Command for Shutdown {
- fn name(&self) -> &'static str {
- "shutdown"
- }
-
- fn clap_subcommand(&self) -> clap::App<'static, 'static> {
- clap::SubCommand::with_name(self.name()).about("Makes the backend daemon quit")
- }
-
- fn run(&self, _matches: &clap::ArgMatches) -> Result<()> {
- let mut rpc = DaemonRpcClient::new()?;
- rpc.shutdown()?;
- Ok(())
- }
-}