diff options
| author | murilo ijanc | 2025-11-20 19:09:33 -0300 |
|---|---|---|
| committer | murilo ijanc | 2025-11-20 19:09:33 -0300 |
| commit | 2bf69f331140e7dcb26352903b3865a1eb67d7e6 (patch) | |
| tree | 24430fb719f847227cf39ffe08310d6641afb777 /src/main.rs | |
| parent | 8c30856c6ca97cf88432ead8bfaa168575dfa95f (diff) | |
| download | cogops-2bf69f331140e7dcb26352903b3865a1eb67d7e6.tar.gz | |
Change command name and version format
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 86f1b35..eea32c8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,9 +32,7 @@ use tokio::task::JoinHandle; use tracing::{debug, error, info}; use tracing_subscriber::EnvFilter; -const LONG_VERSION: &str = concat!( - env!("CARGO_PKG_NAME"), - " ", +const VERSION: &str = concat!( env!("CARGO_PKG_VERSION"), " (", env!("GIT_HASH", "unknown"), @@ -46,10 +44,9 @@ const LONG_VERSION: &str = concat!( /// Batch operations for AWS Cognito user pools. #[derive(Debug, Parser)] #[command( - name = "batch-cognito", + name = env!("CARGO_PKG_NAME"), about = "Batch operations for AWS Cognito user pools", - version = env!("CARGO_PKG_VERSION"), - long_version = LONG_VERSION, + version = VERSION, author, propagate_version = true )] @@ -368,6 +365,7 @@ async fn run_add_groups(args: AddArgs) -> Result<()> { Ok(()) } +#[allow(dead_code)] async fn run_remove_groups(args: CommonOperationArgs) -> Result<()> { info!( pool_id = %args.pool_id, |