Documentation
¶
Overview ¶
Package console is dockhand console: the branches in a table the terminal's size, kept current as serve works, a pane of the journal's events or a branch's detail under it, and keys that run logs, check, tidy, and submit on the row selected.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct {
At time.Time
// Rows are the branches in bucket order (Gathered); All is --all, the
// merged, closed, and archived among them.
Rows []view.Row
All bool
// Serve is serve's state as status says it.
Serve string
// Problem is why the last gather failed, the rows the last that
// didn't.
Problem string
// Events are the journal's events as lines, newest last.
Events []string
// Detail is the selected branch's detail, for the pane that shows it.
Detail []string
Width, Height int
Selected model.BranchID
Pane pane
}
Model is everything a frame shows, with no terminal: the branches' rows, the pane's events or detail, the screen's size, and the row selected, kept by its branch across gathers. Frame draws it, so every decision of the layout is a test of text.
func (*Model) Gathered ¶
Gathered takes the rows a gather found, in bucket order, the done ones only with All, keeping the selected row by its branch; where that's gone, the row now where it was.