From a0a47d6d16ffe7162e0fa7fd80b6894a4ed565d2 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 27 Oct 2025 15:33:48 +1100 Subject: [PATCH] chore(fz-cli): expand `enable` to `enable-service` (#10715) Just `enable` is a bit short when we might also add other sub-commands like `enable-auto-updates`. --- rust/cli/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rust/cli/src/main.rs b/rust/cli/src/main.rs index 9446f54cb..0e80a2278 100644 --- a/rust/cli/src/main.rs +++ b/rust/cli/src/main.rs @@ -59,9 +59,9 @@ fn main() -> Result<()> { write_to_file(ETC_FIREZONE_GATEWAY_TOKEN, token)?; println!("Successfully installed token"); - println!("Tip: You can now start the Gateway with `firezone gateway enable`"); + println!("Tip: You can now start the Gateway with `firezone gateway enable-service`"); } - Gateway(Enable) => { + Gateway(EnableService) => { anyhow::ensure!(cfg!(target_os = "linux"), "Only supported Linux right now"); anyhow::ensure!(is_root(), "Must be executed as root"); @@ -70,7 +70,7 @@ fn main() -> Result<()> { println!("Successfully enabled `firezone-gateway.service`"); } - Gateway(Disable) => { + Gateway(DisableService) => { anyhow::ensure!(cfg!(target_os = "linux"), "Only supported Linux right now"); anyhow::ensure!(is_root(), "Must be executed as root"); @@ -106,9 +106,9 @@ enum GatewayCommand { replace: bool, }, /// Enable the Gateway's systemd service. - Enable, + EnableService, /// Disable the Gateway's systemd service. - Disable, + DisableService, } #[cfg(target_os = "linux")]