Skip to content

Commit bca0b2b

Browse files
feat: Receive interface version from env (#12)
1 parent bb2e08d commit bca0b2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "Apache-2.0"
77

88
[dependencies]
99
anyhow = { version = "1.0.100", features = ["backtrace"] }
10-
clap = { version = "4.5.53", features = ["derive"] }
10+
clap = { version = "4.5.53", features = ["derive", "env"] }
1111
hex = "0.4.3"
1212
ic_principal = "0.1.1"
1313
notify = "8.2.0"

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use tokio::{process::Command, signal::unix::SignalKind};
2828
#[command(version)]
2929
struct Cli {
3030
/// The expected version of the CLI interface. Only used for automated setups.
31-
#[arg(long)]
31+
#[arg(long, env = "ICP_CLI_NETWORK_LAUNCHER_INTERFACE_VERSION")]
3232
interface_version: Option<Version>,
3333
/// Port for the HTTP gateway for the ICP API to listen on.
3434
#[arg(long)]

0 commit comments

Comments
 (0)