Render flushes the state objects to the screen. Currently this is the users path filter input.
()
| 143 | |
| 144 | // Render flushes the state objects to the screen. Currently this is the users path filter input. |
| 145 | func (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. |
| 159 | func (v *Filter) KeyHelp() string { |
no test coverage detected