Add a simple SSR subcommand to the rust-analyzer command line binary

This commit is contained in:
David Lattimore
2020-06-27 17:31:50 +10:00
parent ca31b1d63a
commit 93a91ae9de
6 changed files with 73 additions and 0 deletions

View File

@@ -60,6 +60,9 @@ fn main() -> Result<()> {
args::Command::Diagnostics { path, load_output_dirs, with_proc_macro, all } => {
cli::diagnostics(path.as_ref(), load_output_dirs, with_proc_macro, all)?
}
args::Command::Ssr { rules } => {
cli::apply_ssr_rules(rules)?;
}
args::Command::Version => println!("rust-analyzer {}", env!("REV")),
}
Ok(())