(g *gocui.Gui, v *gocui.View)
| 518 | } |
| 519 | |
| 520 | func (bt *bugTable) push(g *gocui.Gui, v *gocui.View) error { |
| 521 | ui.msgPopup.Activate("Push to remote "+defaultRemote, "...") |
| 522 | |
| 523 | go func() { |
| 524 | // TODO: make the remote configurable |
| 525 | stdout, err := bt.repo.Push(defaultRemote) |
| 526 | |
| 527 | if err != nil { |
| 528 | g.Update(func(gui *gocui.Gui) error { |
| 529 | ui.msgPopup.Activate(msgPopupErrorTitle, err.Error()) |
| 530 | return nil |
| 531 | }) |
| 532 | } else { |
| 533 | g.Update(func(gui *gocui.Gui) error { |
| 534 | ui.msgPopup.UpdateMessage(stdout) |
| 535 | return nil |
| 536 | }) |
| 537 | } |
| 538 | }() |
| 539 | |
| 540 | return nil |
| 541 | } |
| 542 | |
| 543 | func (bt *bugTable) changeQuery(g *gocui.Gui, v *gocui.View) error { |
| 544 | return editQueryWithEditor(bt) |
no test coverage detected