diff --git a/crates/xtask/src/main.rs b/crates/xtask/src/main.rs index 0880acf1..31f83157 100644 --- a/crates/xtask/src/main.rs +++ b/crates/xtask/src/main.rs @@ -4,24 +4,25 @@ use clap::{Args, Parser, Subcommand, arg}; use codegen::codegen; use new_rule::new_lint; use sync_kwlist::sync_kwlist; +use sync_regression_suite::sync_regression_suite; mod codegen; -mod download_regression_tests; mod keywords; mod new_rule; mod path; mod sync_kwlist; +mod sync_regression_suite; #[derive(Subcommand, Debug)] enum TaskName { - #[command(long_about = "Generate code for AST, SyntaxKind, and TokenSets.")] + #[command(long_about = "Generate code for AST, SyntaxKind, and TokenSets")] Codegen, #[command(long_about = "Fetch the latest version of kwlist.h from Postgres")] SyncKwlist, #[command(long_about = "Create a new linter rule")] NewRule(NewRuleArgs), - #[command(long_about = "Download and process regression tests from Postgres")] - DownloadRegressionTests, + #[command(long_about = "Fetch the latest regression suite from Postgres")] + SyncRegressionSuite, } #[derive(Args, Debug)] @@ -42,8 +43,8 @@ fn main() -> Result<()> { let args = Arguments::parse(); match args.task { TaskName::SyncKwlist => sync_kwlist(), + TaskName::SyncRegressionSuite => sync_regression_suite(), TaskName::NewRule(args) => new_lint(args), TaskName::Codegen => codegen(), - TaskName::DownloadRegressionTests => download_regression_tests::download_regression_tests(), } } diff --git a/crates/xtask/src/download_regression_tests.rs b/crates/xtask/src/sync_regression_suite.rs similarity index 99% rename from crates/xtask/src/download_regression_tests.rs rename to crates/xtask/src/sync_regression_suite.rs index bad4e372..2ce815fd 100644 --- a/crates/xtask/src/download_regression_tests.rs +++ b/crates/xtask/src/sync_regression_suite.rs @@ -103,7 +103,7 @@ const GSET_REPLACEMENTS: &[(&str, &str)] = &[ ), ]; -pub(crate) fn download_regression_tests() -> Result<()> { +pub(crate) fn sync_regression_suite() -> Result<()> { let temp_dir = download_regression_suite()?; transform_regression_suite(&temp_dir)?; Ok(())