From f67c4aae13d195a810cbf907738a388cac1b026d Mon Sep 17 00:00:00 2001 From: Bruno Meneguele Date: Wed, 3 Mar 2021 19:24:24 -0300 Subject: [PATCH] list: add "all" to completion The "all" state was not being added to the completion code. This patch adds it alongside the other options. Signed-off-by: Bruno Meneguele --- cmd/issue_list.go | 2 +- cmd/mr_list.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/issue_list.go b/cmd/issue_list.go index 38495858..af2b7a6e 100644 --- a/cmd/issue_list.go +++ b/cmd/issue_list.go @@ -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(), diff --git a/cmd/mr_list.go b/cmd/mr_list.go index 77bffd53..66982c09 100644 --- a/cmd/mr_list.go +++ b/cmd/mr_list.go @@ -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(