You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cli.rs
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,10 @@ enum Command {
26
26
about = "Generate the CODEOWNERS file and save it to '--codeowners-file-path'.",
27
27
visible_alias = "g"
28
28
)]
29
-
Generate,
29
+
Generate{
30
+
#[arg(long, short, default_value = "false", help = "Skip staging the CODEOWNERS file")]
31
+
skip_stage:bool,
32
+
},
30
33
31
34
#[clap(
32
35
about = "Validate the validity of the CODEOWNERS file. A validation failure will exit with a failure code and a detailed output of the validation errors.",
@@ -35,7 +38,10 @@ enum Command {
35
38
Validate,
36
39
37
40
#[clap(about = "Chains both `generate` and `validate` commands.", visible_alias = "gv")]
38
-
GenerateAndValidate,
41
+
GenerateAndValidate{
42
+
#[arg(long, short, default_value = "false", help = "Skip staging the CODEOWNERS file")]
43
+
skip_stage:bool,
44
+
},
39
45
40
46
#[clap(about = "Delete the cache file.", visible_alias = "d")]
0 commit comments