Skip to content

Commit 29804ac

Browse files
committed
cmd: Update carapace code
The carapace library has add FilterParts() to replace Filter(c.Parts).ToA(). Signed-off-by: Prarit Bhargava <[email protected]>
1 parent 4d1dbfa commit 29804ac

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cmd/issue_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func init() {
181181
if err != nil {
182182
return carapace.ActionMessage(err.Error())
183183
}
184-
return action.Labels(project).Invoke(c).Filter(c.Parts).ToA()
184+
return action.Labels(project).Invoke(c).FilterParts()
185185
}),
186186
"milestone": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
187187
project, _, err := parseArgsRemoteAndProject(c.Args)

cmd/issue_edit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func init() {
258258
if err != nil {
259259
return carapace.ActionMessage(err.Error())
260260
}
261-
return action.Labels(project).Invoke(c).Filter(c.Parts).ToA()
261+
return action.Labels(project).Invoke(c).FilterParts()
262262
}),
263263
"milestone": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
264264
project, _, err := parseArgsRemoteAndProject(c.Args)

cmd/issue_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func init() {
181181
if err != nil {
182182
return carapace.ActionMessage(err.Error())
183183
}
184-
return action.Labels(project).Invoke(c).Filter(c.Parts).ToA()
184+
return action.Labels(project).Invoke(c).FilterParts()
185185
}),
186186
"milestone": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
187187
project, _, err := parseArgsRemoteAndProject(c.Args)

cmd/mr_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func init() {
7272
if err != nil {
7373
return carapace.ActionMessage(err.Error())
7474
}
75-
return action.Labels(project).Invoke(c).Filter(c.Parts).ToA()
75+
return action.Labels(project).Invoke(c).FilterParts()
7676
}),
7777
"milestone": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
7878
project, _, err := parseArgsRemoteAndProject(c.Args)

cmd/mr_edit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func init() {
420420
if err != nil {
421421
return carapace.ActionMessage(err.Error())
422422
}
423-
return action.Labels(project).Invoke(c).Filter(c.Parts).ToA()
423+
return action.Labels(project).Invoke(c).FilterParts()
424424

425425
}),
426426
"milestone": carapace.ActionCallback(func(c carapace.Context) carapace.Action {

cmd/mr_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func init() {
260260
if err != nil {
261261
return carapace.ActionMessage(err.Error())
262262
}
263-
return action.Labels(project).Invoke(c).Filter(c.Parts).ToA()
263+
return action.Labels(project).Invoke(c).FilterParts()
264264
}),
265265
"milestone": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
266266
project, _, err := parseArgsRemoteAndProject(c.Args)

0 commit comments

Comments
 (0)