mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
plug new boilerplate_gen into ra_tools
This commit is contained in:
parent
aa250ff612
commit
038975b348
5 changed files with 26 additions and 24 deletions
|
@ -1,8 +1,8 @@
|
|||
use clap::{App, Arg, SubCommand};
|
||||
use core::str;
|
||||
use ra_tools::{
|
||||
gen_tests, generate, install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt, Cmd,
|
||||
Overwrite, Result,
|
||||
gen_tests, generate_boilerplate, install_format_hook, run, run_clippy, run_fuzzer, run_rustfmt,
|
||||
Cmd, Overwrite, Result,
|
||||
};
|
||||
use std::{env, path::PathBuf};
|
||||
|
||||
|
@ -49,7 +49,7 @@ fn main() -> Result<()> {
|
|||
install(opts)?
|
||||
}
|
||||
("gen-tests", _) => gen_tests(Overwrite)?,
|
||||
("gen-syntax", _) => generate(Overwrite)?,
|
||||
("gen-syntax", _) => generate_boilerplate(Overwrite)?,
|
||||
("format", _) => run_rustfmt(Overwrite)?,
|
||||
("format-hook", _) => install_format_hook()?,
|
||||
("lint", _) => run_clippy()?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue