File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,20 @@ fn main() {
65
65
std:: process:: exit ( 1 ) ;
66
66
} ) ;
67
67
68
+ if args. list_checks {
69
+ for ( section, checks) in profile. sections . iter ( ) {
70
+ termimad:: print_text ( & format ! ( "# {:}\n \n " , section) ) ;
71
+ let mut table = "|Check ID|Title|\n |---|---|\n " . to_string ( ) ;
72
+ for check in checks {
73
+ if let Some ( check) = registry. checks . get ( check) {
74
+ table. push_str ( & format ! ( "|{:}|{:}|\n " , check. id, check. title) ) ;
75
+ }
76
+ }
77
+ termimad:: print_text ( & table) ;
78
+ }
79
+ std:: process:: exit ( 0 ) ;
80
+ }
81
+
68
82
// We create one collection for each set of testable files in a directory.
69
83
// So let's group the inputs per directory, and then map them into a FontCollection
70
84
let grouped_inputs: Vec < TestableCollection > = args
You can’t perform that action at this time.
0 commit comments