Skip to content

Commit

Permalink
Change --docker-socket-path to --docker-host and allow for this to be…
Browse files Browse the repository at this point in the history
… passed in as an env var

Co-authored-by: Willem Wyndham <[email protected]>
Co-authored-by: Leigh McCulloch <[email protected]>
  • Loading branch information
3 people authored Feb 21, 2024
1 parent 1f6f0ae commit 851ed5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/network/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pub struct Cmd {
/// Network to start
pub network: Network,

#[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP)]
pub docker_socket_path: Option<String>,
#[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP, env = "DOCKER_HOST")]
pub docker_host: Option<String>,

/// Optional argument to specify the limits for the local network only
#[arg(short = 'l', long)]
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/network/stop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Cmd {
/// Network to stop
pub network: Network,

#[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP)]
#[arg(short = 'd', long, help = DOCKER_SOCKET_PATH_HELP, env = "DOCKER_HOST")]]
pub docker_socket_path: Option<String>,
}

Expand Down

0 comments on commit 851ed5f

Please sign in to comment.