Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
fix(cli): module list is now correct (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Sep 7, 2024
1 parent 2050694 commit 30cebad
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/db/migrate/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use toolchain::backend::run_opengb_command_passthrough;
#[derive(Parser, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Opts {
#[clap(long, default_value = "[]")]
#[clap(long)]
pub modules: Vec<String>,
}

Expand Down
10 changes: 4 additions & 6 deletions packages/cli/src/commands/db/migrate/drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ use toolchain::backend::run_opengb_command_passthrough;
#[derive(Parser, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Opts {
#[clap(long, default_value = "[]")]
#[clap(long)]
pub modules: Vec<String>,
}

impl Opts {
pub async fn execute(&self) -> ExitCode {
run_opengb_command_passthrough("dbMigrateDrop", self).await
}


pub async fn execute(&self) -> ExitCode {
run_opengb_command_passthrough("dbMigrateDrop", self).await
}
}
2 changes: 1 addition & 1 deletion packages/cli/src/commands/db/migrate/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use toolchain::backend::run_opengb_command_passthrough;
#[derive(Parser, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Opts {
#[clap(long, default_value = "[]")]
#[clap(long)]
pub modules: Vec<String>,
}

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/db/migrate/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use toolchain::backend::run_opengb_command_passthrough;
#[derive(Parser, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Opts {
#[clap(long, default_value = "[]")]
#[clap(long)]
pub modules: Vec<String>,
}

Expand Down
9 changes: 4 additions & 5 deletions packages/cli/src/commands/db/reset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ use toolchain::backend::run_opengb_command_passthrough;
#[derive(Parser, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Opts {
#[clap(long, default_value = "[]")]
#[clap(long)]
pub modules: Vec<String>,
}

impl Opts {
pub async fn execute(&self) -> ExitCode {
run_opengb_command_passthrough("dbReset", self).await
pub async fn execute(&self) -> ExitCode {
run_opengb_command_passthrough("dbReset", self).await
}
}


}

0 comments on commit 30cebad

Please sign in to comment.