mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
fix --noedit flag with "dups" command
This commit is contained in:
+3
-2
@@ -14,7 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
log = logging.MustGetLogger("jira")
|
log = logging.MustGetLogger("jira")
|
||||||
defaultFormat = "%{color}%{time:2006-01-02T15:04:05.000Z07:00} %{level:-5s} [%{shortfile}]%{color:reset} %{message}"
|
defaultFormat = "%{color}%{time:2006-01-02T15:04:05.000Z07:00} %{level:-5s} [%{shortfile}]%{color:reset} %{message}"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ func main() {
|
|||||||
user := os.Getenv("USER")
|
user := os.Getenv("USER")
|
||||||
home := os.Getenv("HOME")
|
home := os.Getenv("HOME")
|
||||||
defaultQueryFields := "summary,created,updated,priority,status,reporter,assignee"
|
defaultQueryFields := "summary,created,updated,priority,status,reporter,assignee"
|
||||||
defaultSort := "priority asc, created"
|
defaultSort := "priority asc, key"
|
||||||
defaultMaxResults := 500
|
defaultMaxResults := 500
|
||||||
|
|
||||||
usage := func(ok bool) {
|
usage := func(ok bool) {
|
||||||
@@ -368,6 +368,7 @@ Command Options:
|
|||||||
requireArgs(2)
|
requireArgs(2)
|
||||||
err = c.CmdBlocks(args[0], args[1])
|
err = c.CmdBlocks(args[0], args[1])
|
||||||
case "dups":
|
case "dups":
|
||||||
|
setEditing(true)
|
||||||
requireArgs(2)
|
requireArgs(2)
|
||||||
if err = c.CmdDups(args[0], args[1]); err == nil {
|
if err = c.CmdDups(args[0], args[1]); err == nil {
|
||||||
opts["resolution"] = "Duplicate"
|
opts["resolution"] = "Duplicate"
|
||||||
|
|||||||
Reference in New Issue
Block a user