aboutsummaryrefslogtreecommitdiff
path: root/crates/tools
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-16 19:09:22 +0100
committerAleksey Kladov <[email protected]>2018-10-16 19:17:19 +0100
commit2f4a248f806e8587a21c52e636e6fe68eb9bfdbb (patch)
treea71246cfffb870ec54a7d4e8587991e173a4c0e8 /crates/tools
parent06ab643b007592a7f76309e3c9cb2e715e211a96 (diff)
rename gen-kinds to gen-syntax
Diffstat (limited to 'crates/tools')
-rw-r--r--crates/tools/src/main.rs4
-rw-r--r--crates/tools/tests/cli.rs2
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]
8fn verify_template_generation() { 8fn 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}