File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func addCreate(topLevel *cobra.Command) {
32
32
Use : "create" ,
33
33
Short : "Create a new KEP" ,
34
34
Long : "Create a new KEP using the current KEP template for the given type" ,
35
- Example : ` kepctl create --name a-path --title "My KEP" --number 123 --owning-sig sig-foo` ,
35
+ Example : ` kepctl create --name a-path --title "My KEP" --number 123 --owning-sig sig-foo --approvers someapprover --authors githubhandle ` ,
36
36
SilenceUsage : true ,
37
37
SilenceErrors : true ,
38
38
PreRunE : func (cmd * cobra.Command , args []string ) error {
@@ -94,6 +94,20 @@ func addCreate(topLevel *cobra.Command) {
94
94
"KEP State" ,
95
95
)
96
96
97
+ cmd .PersistentFlags ().StringArrayVar (
98
+ & co .Approvers ,
99
+ "approvers" ,
100
+ []string {},
101
+ "Approvers" ,
102
+ )
103
+
104
+ cmd .PersistentFlags ().StringVar (
105
+ & co .Stage ,
106
+ "stage" ,
107
+ string (api .AlphaStage ),
108
+ "KEP Stage" ,
109
+ )
110
+
97
111
cmd .PersistentFlags ().StringVar (
98
112
& co .SIG ,
99
113
"owning-sig" ,
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ type CreateOpts struct {
47
47
Reviewers []string
48
48
Type string
49
49
State string
50
+ Stage string
50
51
ParticipatingSIGs []string
51
52
PRRApprovers []string
52
53
}
@@ -162,6 +163,7 @@ func populateProposal(p *api.Proposal, opts *CreateOpts) {
162
163
p .ParticipatingSIGs = append (opts .ParticipatingSIGs , opts .SIG )
163
164
p .Filename = opts .Name
164
165
p .LastUpdated = "v1.19"
166
+ p .Stage = api .Stage (opts .Stage )
165
167
166
168
if len (opts .PRRApprovers ) > 0 {
167
169
p .PRRApprovers = updatePersonReference (opts .PRRApprovers )
You can’t perform that action at this time.
0 commit comments