diff options
Diffstat (limited to 'crates/tools')
-rw-r--r-- | crates/tools/src/main.rs | 4 | ||||
-rw-r--r-- | crates/tools/tests/cli.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index 965bc7729..152298014 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs | |||
@@ -28,7 +28,7 @@ fn main() -> Result<()> { | |||
28 | .help("Verify that generated code is up-to-date") | 28 | .help("Verify that generated code is up-to-date") |
29 | .global(true), | 29 | .global(true), |
30 | ) | 30 | ) |
31 | .subcommand(SubCommand::with_name("gen-kinds")) | 31 | .subcommand(SubCommand::with_name("gen-syntax")) |
32 | .subcommand(SubCommand::with_name("gen-tests")) | 32 | .subcommand(SubCommand::with_name("gen-tests")) |
33 | .subcommand(SubCommand::with_name("install-code")) | 33 | .subcommand(SubCommand::with_name("install-code")) |
34 | .get_matches(); | 34 | .get_matches(); |
@@ -40,7 +40,7 @@ fn main() -> Result<()> { | |||
40 | match matches.subcommand() { | 40 | match matches.subcommand() { |
41 | ("install-code", _) => install_code_extension()?, | 41 | ("install-code", _) => install_code_extension()?, |
42 | ("gen-tests", _) => gen_tests(mode)?, | 42 | ("gen-tests", _) => gen_tests(mode)?, |
43 | ("gen-kinds", _) => generate(Overwrite)?, | 43 | ("gen-syntax", _) => generate(Overwrite)?, |
44 | _ => unreachable!(), | 44 | _ => unreachable!(), |
45 | } | 45 | } |
46 | Ok(()) | 46 | Ok(()) |
diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs index 0bb5d15d8..5de52fc2b 100644 --- a/crates/tools/tests/cli.rs +++ b/crates/tools/tests/cli.rs | |||
@@ -7,6 +7,6 @@ use tools::{ | |||
7 | #[test] | 7 | #[test] |
8 | fn verify_template_generation() { | 8 | fn verify_template_generation() { |
9 | if let Err(error) = generate(Verify) { | 9 | if let Err(error) = generate(Verify) { |
10 | panic!("{}. Please update it by running `cargo gen-kinds`", error); | 10 | panic!("{}. Please update it by running `cargo gen-syntax`", error); |
11 | } | 11 | } |
12 | } | 12 | } |