From a936b8a92ba407a9a97743535db03057072f7304 Mon Sep 17 00:00:00 2001 From: Alek Westover Date: Fri, 16 Jun 2023 17:05:39 -0400 Subject: [PATCH] add ext cli args --- compute_tools/src/bin/compute_ctl.rs | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/compute_tools/src/bin/compute_ctl.rs b/compute_tools/src/bin/compute_ctl.rs index 276fc474bd..a41681ded0 100644 --- a/compute_tools/src/bin/compute_ctl.rs +++ b/compute_tools/src/bin/compute_ctl.rs @@ -59,6 +59,13 @@ fn main() -> Result<()> { let matches = cli().get_matches(); + let remote_ext_bucket = *matches + .get_one::("remote-extension-bucket") + .expect("remote-extension bucket is required"); + let remote_ext_region = *matches + .get_one::("remote-extension-region") + .expect("remote-extension region is required"); + let http_port = *matches .get_one::("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"), ) }