diff options
author | Michael Muré <batolettre@gmail.com> | 2022-08-20 11:01:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 11:01:37 +0200 |
commit | 855684149740e2fb8eec21f3d97df2eba39b27c5 (patch) | |
tree | a3bd60a9f533fc6fc11a094038d095510210cd23 /commands | |
parent | 58df94d38d754bff4dcca11e2ae4b99326a9a87e (diff) | |
parent | 8818d091e85087766d7f493b7dfaf1aedc3a4ab0 (diff) | |
download | git-bug-855684149740e2fb8eec21f3d97df2eba39b27c5.tar.gz |
Merge pull request #856 from MichaelMure/common-status
move bug.Status in entities/common for reuse
Diffstat (limited to 'commands')
-rw-r--r-- | commands/ls.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/ls.go b/commands/ls.go index 82f994b4..6ec06f39 100644 --- a/commands/ls.go +++ b/commands/ls.go @@ -12,6 +12,7 @@ import ( "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/entities/bug" + "github.com/MichaelMure/git-bug/entities/common" "github.com/MichaelMure/git-bug/query" "github.com/MichaelMure/git-bug/util/colors" ) @@ -379,7 +380,7 @@ func lsOrgmodeFormatter(env *Env, bugExcerpts []*cache.BugExcerpt) error { // Finish the command flags transformation into the query.Query func completeQuery(q *query.Query, opts lsOptions) error { for _, str := range opts.statusQuery { - status, err := bug.StatusFromString(str) + status, err := common.StatusFromString(str) if err != nil { return err } |