MCPcopy
hub / github.com/wagoodman/dive / Render

Method Render

runtime/ui/view/filter.go:145–156  ·  view source on GitHub ↗

Render flushes the state objects to the screen. Currently this is the users path filter input.

()

Source from the content-addressed store, hash-verified

143
144// Render flushes the state objects to the screen. Currently this is the users path filter input.
145func (v *Filter) Render() error {
146 logrus.Tracef("view.Render() %s", v.Name())
147
148 v.gui.Update(func(g *gocui.Gui) error {
149 _, err := fmt.Fprintln(v.header, format.Header(v.labelStr))
150 if err != nil {
151 logrus.Error("unable to write to buffer: ", err)
152 }
153 return err
154 })
155 return nil
156}
157
158// KeyHelp indicates all the possible actions a user can take while the current pane is selected.
159func (v *Filter) KeyHelp() string {

Callers 2

SetupMethod · 0.95
OnLayoutChangeMethod · 0.95

Calls 2

NameMethod · 0.95
UpdateMethod · 0.65

Tested by

no test coverage detected