add ext cli args

This commit is contained in:
Alek Westover
2023-06-16 17:05:39 -04:00
parent c7bea52849
commit a936b8a92b

View File

@@ -59,6 +59,13 @@ fn main() -> Result<()> {
let matches = cli().get_matches();
let remote_ext_bucket = *matches
.get_one::<String>("remote-extension-bucket")
.expect("remote-extension bucket is required");
let remote_ext_region = *matches
.get_one::<String>("remote-extension-region")
.expect("remote-extension region is required");
let http_port = *matches
.get_one::<u16>("http-port")
.expect("http-port is required");
@@ -346,10 +353,16 @@ fn cli() -> clap::Command {
.value_name("CONTROL_PLANE_API_BASE_URI"),
)
.arg(
Arg::new("remote-ext-config")
.short('r')
.long("remote-ext-config")
.value_name("REMOTE_EXT_CONFIG"),
Arg::new("remote-ext-bucket")
.short("u")
.long("remote-ext-bucket")
.value_name("REMOTE_EXT_BUCKET"),
)
.arg(
Arg::new("remote-ext-region")
.short("r")
.long("remote-ext-region")
.value_name("REMOTE_EXT_REGION"),
)
}