aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tools/src/main.rs')
-rw-r--r--crates/tools/src/main.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs
index c3e293911..963ffbe98 100644
--- a/crates/tools/src/main.rs
+++ b/crates/tools/src/main.rs
@@ -15,10 +15,7 @@ fn main() -> Result<()> {
15 .subcommand(SubCommand::with_name("format-hook")) 15 .subcommand(SubCommand::with_name("format-hook"))
16 .subcommand(SubCommand::with_name("fuzz-tests")) 16 .subcommand(SubCommand::with_name("fuzz-tests"))
17 .get_matches(); 17 .get_matches();
18 match matches 18 match matches.subcommand_name().expect("Subcommand must be specified") {
19 .subcommand_name()
20 .expect("Subcommand must be specified")
21 {
22 "install-code" => install_code_extension()?, 19 "install-code" => install_code_extension()?,
23 "gen-tests" => gen_tests(Overwrite)?, 20 "gen-tests" => gen_tests(Overwrite)?,
24 "gen-syntax" => generate(Overwrite)?, 21 "gen-syntax" => generate(Overwrite)?,
@@ -45,10 +42,7 @@ fn install_code_extension() -> Result<()> {
45 "./editors/code", 42 "./editors/code",
46 )?; 43 )?;
47 } else { 44 } else {
48 run( 45 run(r"code --install-extension ./ra-lsp-0.0.1.vsix --force", "./editors/code")?;
49 r"code --install-extension ./ra-lsp-0.0.1.vsix --force",
50 "./editors/code",
51 )?;
52 } 46 }
53 Ok(()) 47 Ok(())
54} 48}