Skip to content

Commit

Permalink
list: add "all" to completion
Browse files Browse the repository at this point in the history
The "all" state was not being added to the completion code. This patch adds
it alongside the other options.

Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
  • Loading branch information
bmeneg committed Mar 3, 2021
1 parent 2b21ae6 commit f67c4aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/issue_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func init() {

issueCmd.AddCommand(issueListCmd)
carapace.Gen(issueListCmd).FlagCompletion(carapace.ActionMap{
"state": carapace.ActionValues("opened", "closed"),
"state": carapace.ActionValues("all", "opened", "closed"),
})
carapace.Gen(issueListCmd).PositionalCompletion(
action.Remotes(),
Expand Down
2 changes: 1 addition & 1 deletion cmd/mr_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func init() {

mrCmd.AddCommand(listCmd)
carapace.Gen(listCmd).FlagCompletion(carapace.ActionMap{
"state": carapace.ActionValues("opened", "closed", "merged"),
"state": carapace.ActionValues("all", "opened", "closed", "merged"),
})

carapace.Gen(listCmd).PositionalCompletion(
Expand Down

0 comments on commit f67c4aa

Please sign in to comment.