Skip to content

Commit

Permalink
pick up new progenitor CLI interface (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl authored Feb 6, 2024
1 parent bdde14a commit e4359fb
Show file tree
Hide file tree
Showing 12 changed files with 2,214 additions and 1,979 deletions.
41 changes: 31 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ open = { workspace = true }
oxide = { workspace = true }
predicates = { workspace = true }
reqwest = { workspace = true, features = ["native-tls-vendored"] }
schemars = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tabwriter = { workspace = true }
Expand Down
7 changes: 3 additions & 4 deletions cli/src/cli_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<'a> Default for NewCli<'a> {
let Some(path) = xxx(op) else { continue };
runner.add_cmd(path, GeneratedCmd(op));

let cmd = Cli::get_command(op);
let cmd = Cli::<OxideOverride>::get_command(op);
let cmd = match op {
CliCommand::IpPoolRangeAdd
| CliCommand::IpPoolRangeRemove
Expand Down Expand Up @@ -245,9 +245,8 @@ struct GeneratedCmd(CliCommand);
#[async_trait]
impl RunIt for GeneratedCmd {
async fn run_cmd(&self, matches: &ArgMatches, ctx: &Context) -> Result<()> {
let cli = Cli::new_with_override(ctx.client()?.clone(), OxideOverride);
cli.execute(self.0, matches).await;
Ok(())
let cli = Cli::new(ctx.client()?.clone(), OxideOverride::default());
cli.execute(self.0, matches).await
}

fn is_subtree(&self) -> bool {
Expand Down
Loading

0 comments on commit e4359fb

Please sign in to comment.