From f080a67e1ab68f803f012514a08545cee4baa69a Mon Sep 17 00:00:00 2001 From: Marco Kirchner Date: Sun, 28 Apr 2024 08:47:27 +0200 Subject: [PATCH] Add shadow flag --- kuma-cli/src/cli.rs | 3 +++ kuma-cli/src/main.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/kuma-cli/src/cli.rs b/kuma-cli/src/cli.rs index 10d67bc..ab5f7b9 100644 --- a/kuma-cli/src/cli.rs +++ b/kuma-cli/src/cli.rs @@ -46,6 +46,9 @@ pub(crate) struct Cli { #[arg(long = "pretty", default_value_t = false, global = true)] pub output_pretty: bool, + #[arg(long, hide = true)] + pub shadow: bool, + #[command(subcommand)] pub command: Option, } diff --git a/kuma-cli/src/main.rs b/kuma-cli/src/main.rs index 4337f55..443cd7c 100644 --- a/kuma-cli/src/main.rs +++ b/kuma-cli/src/main.rs @@ -29,6 +29,7 @@ async fn main() { Some(Commands::Maintenance { command }) => maintenance::handle(command, &config, &cli).await, Some(Commands::StatusPage { command }) => status_page::handle(command, &config, &cli).await, Some(Commands::DockerHost { command }) => docker_host::handle(command, &config, &cli).await, + None if cli.shadow => kuma_client::build::print_build_in(), None => {} };