Skip to content

Commit

Permalink
fix(cli): Respect WASMER_REGISTRY env var in all commands
Browse files Browse the repository at this point in the history
The ApiOpts definition was missing the env declaration.
  • Loading branch information
theduke committed Jun 13, 2024
1 parent 27066c6 commit 6da5acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn parse_registry_url(registry: &str) -> Result<url::Url, String> {
pub struct ApiOpts {
#[clap(long, env = "WASMER_TOKEN")]
pub token: Option<String>,
#[clap(long, value_parser = parse_registry_url)]
#[clap(long, value_parser = parse_registry_url, env = "WASMER_REGISTRY")]
pub registry: Option<url::Url>,
}

Expand Down

0 comments on commit 6da5acd

Please sign in to comment.