diff --git a/cmd/soroban-cli/src/commands/network/container/logs.rs b/cmd/soroban-cli/src/commands/network/container/logs.rs index 549a8e2bc..c6d623e61 100644 --- a/cmd/soroban-cli/src/commands/network/container/logs.rs +++ b/cmd/soroban-cli/src/commands/network/container/logs.rs @@ -4,7 +4,7 @@ use crate::commands::network::container::shared::{ connect_to_docker, Error as ConnectionError, Network, }; -use super::shared::{get_container_name, ContainerArgs}; +use super::shared::{get_container_name, Args}; #[derive(thiserror::Error, Debug)] pub enum Error { @@ -18,7 +18,7 @@ pub enum Error { #[derive(Debug, clap::Parser, Clone)] pub struct Cmd { #[command(flatten)] - pub container_args: ContainerArgs, + pub container_args: Args, /// Network container to tail (used in container name generation) #[arg(required_unless_present = "container_name")] diff --git a/cmd/soroban-cli/src/commands/network/container/shared.rs b/cmd/soroban-cli/src/commands/network/container/shared.rs index 6b2e282c8..ac59474b3 100644 --- a/cmd/soroban-cli/src/commands/network/container/shared.rs +++ b/cmd/soroban-cli/src/commands/network/container/shared.rs @@ -32,7 +32,7 @@ pub enum Error { } #[derive(Debug, clap::Parser, Clone)] -pub struct ContainerArgs { +pub struct Args { /// Optional argument to specify the container name #[arg(short = 'c', long, required_unless_present = "network")] pub container_name: Option, diff --git a/cmd/soroban-cli/src/commands/network/container/start.rs b/cmd/soroban-cli/src/commands/network/container/start.rs index c48cd7092..b6b376e6a 100644 --- a/cmd/soroban-cli/src/commands/network/container/start.rs +++ b/cmd/soroban-cli/src/commands/network/container/start.rs @@ -11,7 +11,7 @@ use crate::commands::network::container::shared::{ connect_to_docker, get_container_name, Error as ConnectionError, Network, }; -use super::shared::ContainerArgs; +use super::shared::Args; const DEFAULT_PORT_MAPPING: &str = "8000:8000"; const DOCKER_IMAGE: &str = "docker.io/stellar/quickstart"; @@ -28,7 +28,7 @@ pub enum Error { #[derive(Debug, clap::Parser, Clone)] pub struct Cmd { #[command(flatten)] - pub container_args: ContainerArgs, + pub container_args: Args, /// Network to start pub network: Network, diff --git a/cmd/soroban-cli/src/commands/network/container/stop.rs b/cmd/soroban-cli/src/commands/network/container/stop.rs index 847086504..eb7083681 100644 --- a/cmd/soroban-cli/src/commands/network/container/stop.rs +++ b/cmd/soroban-cli/src/commands/network/container/stop.rs @@ -2,7 +2,7 @@ use crate::commands::network::container::shared::{ connect_to_docker, get_container_name, Error as BollardConnectionError, Network, }; -use super::shared::ContainerArgs; +use super::shared::Args; #[derive(thiserror::Error, Debug)] pub enum Error { @@ -23,7 +23,7 @@ pub enum Error { #[derive(Debug, clap::Parser, Clone)] pub struct Cmd { #[command(flatten)] - pub container_args: ContainerArgs, + pub container_args: Args, /// Network to stop (used in container name generation) #[arg(required_unless_present = "container_name")]