ui

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInput

func NewInput() *tview.InputField

func NewTextView

func NewTextView() *tview.TextView

Types

type UI

type UI struct {
	In  *bytes.Buffer
	Out *bytes.Buffer

	Printer   yqlib.Printer
	Evaluator yqlib.StreamEvaluator
	Parser    yqlib.ExpressionParser

	App   *tview.Application
	Input *tview.InputField
	View  *tview.TextView
}

func New

func New(in *bytes.Buffer, out *bytes.Buffer, printer yqlib.Printer, evaluator yqlib.StreamEvaluator, parser yqlib.ExpressionParser) *UI

func (*UI) Start

func (ui *UI) Start() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL