@@ -4,24 +4,25 @@ use clap::{Args, Parser, Subcommand, arg};
44use codegen:: codegen;
55use new_rule:: new_lint;
66use sync_kwlist:: sync_kwlist;
7+ use sync_regression_suite:: sync_regression_suite;
78
89mod codegen;
9- mod download_regression_tests;
1010mod keywords;
1111mod new_rule;
1212mod path;
1313mod sync_kwlist;
14+ mod sync_regression_suite;
1415
1516#[ derive( Subcommand , Debug ) ]
1617enum TaskName {
17- #[ command( long_about = "Generate code for AST, SyntaxKind, and TokenSets. " ) ]
18+ #[ command( long_about = "Generate code for AST, SyntaxKind, and TokenSets" ) ]
1819 Codegen ,
1920 #[ command( long_about = "Fetch the latest version of kwlist.h from Postgres" ) ]
2021 SyncKwlist ,
2122 #[ command( long_about = "Create a new linter rule" ) ]
2223 NewRule ( NewRuleArgs ) ,
23- #[ command( long_about = "Download and process regression tests from Postgres" ) ]
24- DownloadRegressionTests ,
24+ #[ command( long_about = "Fetch the latest regression suite from Postgres" ) ]
25+ SyncRegressionSuite ,
2526}
2627
2728#[ derive( Args , Debug ) ]
@@ -42,8 +43,8 @@ fn main() -> Result<()> {
4243 let args = Arguments :: parse ( ) ;
4344 match args. task {
4445 TaskName :: SyncKwlist => sync_kwlist ( ) ,
46+ TaskName :: SyncRegressionSuite => sync_regression_suite ( ) ,
4547 TaskName :: NewRule ( args) => new_lint ( args) ,
4648 TaskName :: Codegen => codegen ( ) ,
47- TaskName :: DownloadRegressionTests => download_regression_tests:: download_regression_tests ( ) ,
4849 }
4950}
0 commit comments