Skip to content

Commit

Permalink
Rename ContainerArgs -> Args
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Jul 15, 2024
1 parent d800be5 commit 196c5e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/network/container/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")]
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/network/container/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/network/container/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/network/container/stop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")]
Expand Down

0 comments on commit 196c5e5

Please sign in to comment.