diff options
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r-- | xtask/src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index c08915aac..0b19c34f4 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -7,8 +7,8 @@ use core::str; | |||
7 | use pico_args::Arguments; | 7 | use pico_args::Arguments; |
8 | use std::{env, path::PathBuf}; | 8 | use std::{env, path::PathBuf}; |
9 | use xtask::{ | 9 | use xtask::{ |
10 | gen_tests, generate_boilerplate, install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt, | 10 | codegen::{self, Mode}, |
11 | run_with_output, Cmd, Overwrite, Result, | 11 | install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt, run_with_output, Cmd, Result, |
12 | }; | 12 | }; |
13 | 13 | ||
14 | // Latest stable, feel free to send a PR if this lags behind. | 14 | // Latest stable, feel free to send a PR if this lags behind. |
@@ -62,21 +62,21 @@ fn main() -> Result<()> { | |||
62 | help::print_no_param_subcommand_help(&subcommand); | 62 | help::print_no_param_subcommand_help(&subcommand); |
63 | return Ok(()); | 63 | return Ok(()); |
64 | } | 64 | } |
65 | gen_tests(Overwrite)? | 65 | codegen::generate_parser_tests(Mode::Overwrite)? |
66 | } | 66 | } |
67 | "codegen" => { | 67 | "codegen" => { |
68 | if matches.contains(["-h", "--help"]) { | 68 | if matches.contains(["-h", "--help"]) { |
69 | help::print_no_param_subcommand_help(&subcommand); | 69 | help::print_no_param_subcommand_help(&subcommand); |
70 | return Ok(()); | 70 | return Ok(()); |
71 | } | 71 | } |
72 | generate_boilerplate(Overwrite)? | 72 | codegen::generate_syntax(Mode::Overwrite)? |
73 | } | 73 | } |
74 | "format" => { | 74 | "format" => { |
75 | if matches.contains(["-h", "--help"]) { | 75 | if matches.contains(["-h", "--help"]) { |
76 | help::print_no_param_subcommand_help(&subcommand); | 76 | help::print_no_param_subcommand_help(&subcommand); |
77 | return Ok(()); | 77 | return Ok(()); |
78 | } | 78 | } |
79 | run_rustfmt(Overwrite)? | 79 | run_rustfmt(Mode::Overwrite)? |
80 | } | 80 | } |
81 | "format-hook" => { | 81 | "format-hook" => { |
82 | if matches.contains(["-h", "--help"]) { | 82 | if matches.contains(["-h", "--help"]) { |