xtask: fold gen-tests and gen-ast into codegen

This commit is contained in:
Aleksey Kladov 2019-10-23 18:17:24 +03:00
parent b5f13d8d51
commit a669049ef3
4 changed files with 4 additions and 11 deletions

View file

@ -13,7 +13,6 @@ SUBCOMMANDS:
format-hook
fuzz-tests
codegen
gen-tests
install
lint";

View file

@ -57,19 +57,13 @@ fn main() -> Result<()> {
};
install(opts)?
}
"gen-tests" => {
if matches.contains(["-h", "--help"]) {
help::print_no_param_subcommand_help(&subcommand);
return Ok(());
}
codegen::generate_parser_tests(Mode::Overwrite)?
}
"codegen" => {
if matches.contains(["-h", "--help"]) {
help::print_no_param_subcommand_help(&subcommand);
return Ok(());
}
codegen::generate_syntax(Mode::Overwrite)?
codegen::generate_syntax(Mode::Overwrite)?;
codegen::generate_parser_tests(Mode::Overwrite)?;
}
"format" => {
if matches.contains(["-h", "--help"]) {