Skip to content

Commit

Permalink
chore(xtask): Add gen-all command
Browse files Browse the repository at this point in the history
  • Loading branch information
NickLarsenNZ committed Nov 19, 2024
1 parent 46c3965 commit 8d8249f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rust/xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mod readme;
#[derive(clap::Parser)]
#[allow(clippy::enum_variant_names)]
enum XtaskCommand {
GenAll,
GenMan,
GenComp,
GenOpenapi,
Expand Down Expand Up @@ -49,6 +50,14 @@ enum TaskError {
#[snafu::report]
fn main() -> Result<(), TaskError> {
match XtaskCommand::parse() {
XtaskCommand::GenAll => {
// IMPORTANT (@NickLarsenNZ): ensure all commands defined below are also in here.
man::generate()?;
completions::generate()?;
openapi::generate()?;
readme::generate()?;
docs::generate()?;
}
XtaskCommand::GenMan => man::generate()?,
XtaskCommand::GenComp => completions::generate()?,
XtaskCommand::GenOpenapi => openapi::generate()?,
Expand Down

0 comments on commit 8d8249f

Please sign in to comment.