File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -72,42 +72,42 @@ enum Command {
72
72
fn main ( ) -> anyhow:: Result < ( ) > {
73
73
let opt = Opt :: from_args ( ) ;
74
74
75
- match & opt. cmd {
76
- Some ( Command :: Supports { renderer } ) => {
75
+ let Some ( cmd) = & opt. cmd else {
76
+ return handle_preprocessing ( & GoalPreprocessor ) ;
77
+ } ;
78
+
79
+ match cmd {
80
+ Command :: Supports { renderer } => {
77
81
handle_supports ( & GoalPreprocessor , renderer) ?;
78
82
}
79
83
80
- Some ( Command :: FCP { path } ) => {
84
+ Command :: FCP { path } => {
81
85
rfc:: generate_comment ( & path) ?;
82
86
}
83
87
84
- Some ( Command :: Check { } ) => {
88
+ Command :: Check { } => {
85
89
check ( ) ?;
86
90
}
87
91
88
- Some ( Command :: RFC { path } ) => {
92
+ Command :: RFC { path } => {
89
93
rfc:: generate_rfc ( & path) ?;
90
94
}
91
95
92
- Some ( Command :: Issues {
96
+ Command :: Issues {
93
97
path,
94
98
commit,
95
99
sleep,
96
- } ) => {
100
+ } => {
97
101
rfc:: generate_issues ( & opt. repository , path, * commit, * sleep)
98
102
. with_context ( || format ! ( "failed to adjust issues; rerun command to resume" ) ) ?;
99
103
}
100
104
101
- Some ( Command :: TeamRepo {
105
+ Command :: TeamRepo {
102
106
path,
103
107
team_repo_path,
104
- } ) => {
108
+ } => {
105
109
team_repo:: generate_team_repo ( & path, team_repo_path) ?;
106
110
}
107
-
108
- None => {
109
- handle_preprocessing ( & GoalPreprocessor ) ?;
110
- }
111
111
}
112
112
113
113
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments