Skip to content

Commit 8d8249f

Browse files
committed
chore(xtask): Add gen-all command
1 parent 46c3965 commit 8d8249f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rust/xtask/src/main.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ mod readme;
1515
#[derive(clap::Parser)]
1616
#[allow(clippy::enum_variant_names)]
1717
enum XtaskCommand {
18+
GenAll,
1819
GenMan,
1920
GenComp,
2021
GenOpenapi,
@@ -49,6 +50,14 @@ enum TaskError {
4950
#[snafu::report]
5051
fn main() -> Result<(), TaskError> {
5152
match XtaskCommand::parse() {
53+
XtaskCommand::GenAll => {
54+
// IMPORTANT (@NickLarsenNZ): ensure all commands defined below are also in here.
55+
man::generate()?;
56+
completions::generate()?;
57+
openapi::generate()?;
58+
readme::generate()?;
59+
docs::generate()?;
60+
}
5261
XtaskCommand::GenMan => man::generate()?,
5362
XtaskCommand::GenComp => completions::generate()?,
5463
XtaskCommand::GenOpenapi => openapi::generate()?,

0 commit comments

Comments
 (0)