Method
toggleOpenClose
(g *gocui.Gui, v *gocui.View)
Source from the content-addressed store, hash-verified
| 624 | } |
| 625 | |
| 626 | func (sb *showBug) toggleOpenClose(g *gocui.Gui, v *gocui.View) error { |
| 627 | switch sb.bug.Snapshot().Status { |
| 628 | case common.OpenStatus: |
| 629 | _, err := sb.bug.Close() |
| 630 | return err |
| 631 | case common.ClosedStatus: |
| 632 | _, err := sb.bug.Open() |
| 633 | return err |
| 634 | default: |
| 635 | return nil |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | func (sb *showBug) edit(g *gocui.Gui, v *gocui.View) error { |
| 640 | snap := sb.bug.Snapshot() |
Callers
nothing calls this directly
Tested by
no test coverage detected