@@ -41,7 +41,8 @@ func getFeatureBeginSubCommand() *cli.Command {
41
41
if desc == "" {
42
42
return errors .New ("'Description' could not be empty" )
43
43
}
44
- return getFlow (c ).FeatureBegin (title , desc )
44
+ opc := getOpFeatureContext (c )
45
+ return getFlow (c ).FeatureBegin (opc , title , desc )
45
46
},
46
47
}
47
48
}
@@ -73,7 +74,8 @@ func getFeatureBeginIssueSubCommand() *cli.Command {
73
74
issueTitle := c .Args ().Get (0 )
74
75
issueDesc := c .Args ().Get (1 )
75
76
featureBranchName := c .String ("feature_branch_name" )
76
- return getFlow (c ).FeatureBeginIssue (featureBranchName , issueTitle , issueDesc )
77
+ opc := getOpFeatureContext (c )
78
+ return getFlow (c ).FeatureBeginIssue (opc , featureBranchName , issueTitle , issueDesc )
77
79
},
78
80
}
79
81
}
@@ -105,7 +107,8 @@ func getFeatureFinishIssueSubCommand() *cli.Command {
105
107
Action : func (c * cli.Context ) error {
106
108
featureBranchName := c .String ("feature_branch_name" )
107
109
issueBranchName := c .String ("issue_branch_name" )
108
- return getFlow (c ).FeatureFinishIssue (featureBranchName , issueBranchName )
110
+ opc := getOpFeatureContext (c )
111
+ return getFlow (c ).FeatureFinishIssue (opc , featureBranchName , issueBranchName )
109
112
},
110
113
}
111
114
}
@@ -126,8 +129,8 @@ func getFeatureDebugSubCommand() *cli.Command {
126
129
},
127
130
},
128
131
Action : func (c * cli.Context ) error {
129
- featureBranchName := c . String ( "feature_branch_name" )
130
- return getFlow (c ).FeatureDebugging (featureBranchName )
132
+ opc := getOpFeatureContext ( c )
133
+ return getFlow (c ).FeatureDebugging (opc )
131
134
},
132
135
}
133
136
}
@@ -148,8 +151,8 @@ func getFeatureTestSubCommand() *cli.Command {
148
151
},
149
152
},
150
153
Action : func (c * cli.Context ) error {
151
- featureBranchName := c . String ( "feature_branch_name" )
152
- return getFlow (c ).FeatureTest (featureBranchName )
154
+ opc := getOpFeatureContext ( c )
155
+ return getFlow (c ).FeatureTest (opc )
153
156
},
154
157
}
155
158
}
@@ -170,8 +173,8 @@ func getFeatureReleaseSubCommand() *cli.Command {
170
173
},
171
174
},
172
175
Action : func (c * cli.Context ) error {
173
- featureBranchName := c . String ( "feature_branch_name" )
174
- return getFlow (c ).FeatureRelease (featureBranchName )
176
+ opc := getOpFeatureContext ( c )
177
+ return getFlow (c ).FeatureRelease (opc )
175
178
},
176
179
}
177
180
}
@@ -183,12 +186,6 @@ func getFeatureResolveConflictCommand() *cli.Command {
183
186
ArgsUsage : "-f, --feature_branch_name `featureBranchName`, -t, --target_branch `targetBranch`" ,
184
187
Category : "feature" ,
185
188
Flags : []cli.Flag {
186
- & cli.StringFlag {
187
- Name : "feature_branch_name" ,
188
- Aliases : []string {"-f" },
189
- Usage : "input the `featureBranchName`" ,
190
- Required : false ,
191
- },
192
189
& cli.StringFlag {
193
190
Name : "target_branch" ,
194
191
Aliases : []string {"-t" },
@@ -199,9 +196,9 @@ func getFeatureResolveConflictCommand() *cli.Command {
199
196
},
200
197
},
201
198
Action : func (c * cli.Context ) error {
202
- featureBranchName := c .String ("feature_branch_name" )
203
199
targetBranchName := c .String ("target_branch" )
204
- return getFlow (c ).FeatureResolveConflict (featureBranchName , types .BranchTyp (targetBranchName ))
200
+ opc := getOpFeatureContext (c )
201
+ return getFlow (c ).FeatureResolveConflict (opc , types .BranchTyp (targetBranchName ))
205
202
},
206
203
}
207
204
}
0 commit comments