Corrects error messaging
This commit is contained in:
parent
11d9235d0b
commit
040d8f2bd1
7
board.go
7
board.go
|
@ -244,7 +244,11 @@ func (b *Board) EnterCommand() {
|
|||
b.Lanes[b.Current].Stories[b.Lanes[b.Current].Current].AddTask(name, b)
|
||||
case "comment", "com", "c":
|
||||
b.Lanes[b.Current].Stories[b.Lanes[b.Current].Current].AddComment(name, b)
|
||||
default:
|
||||
b.SetMessage(fmt.Sprintf("Unknown target %q", f[1]), true)
|
||||
}
|
||||
} else {
|
||||
b.SetMessage("More info needed: 'create [target|location] [[value]]'", true)
|
||||
}
|
||||
case "d", "del", "delete":
|
||||
if len(f) > 1 {
|
||||
|
@ -260,12 +264,11 @@ func (b *Board) EnterCommand() {
|
|||
val = f[2]
|
||||
}
|
||||
b.Lanes[b.Current].Stories[b.Lanes[b.Current].Current].DeleteTask(val, b)
|
||||
// TODO
|
||||
default:
|
||||
b.SetMessage(fmt.Sprintf("Unknown target %q", f[1]), true)
|
||||
}
|
||||
} else {
|
||||
b.SetMessage("More info needed: 'update [target] [location]'", true)
|
||||
b.SetMessage("More info needed: 'delete [target] [[location]]'", true)
|
||||
}
|
||||
case "set", "s":
|
||||
if len(f) > 2 {
|
||||
|
|
Loading…
Reference in New Issue