inputdata

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bubble

type Bubble struct {
	// contains filtered or unexported fields
}

func New

func New(inputJSON []byte, filename string, jqtheme theme.Theme) (Bubble, error)

func (Bubble) GetHighlightedInputJSON added in v0.7.0

func (b Bubble) GetHighlightedInputJSON() []byte

func (Bubble) GetInputJSON added in v0.7.0

func (b Bubble) GetInputJSON() []byte

func (Bubble) Init

func (b Bubble) Init(isJSONLines bool) tea.Cmd

func (*Bubble) SetBorderColor

func (b *Bubble) SetBorderColor(color lipgloss.TerminalColor)

func (*Bubble) SetContent added in v0.7.0

func (b *Bubble) SetContent(content string)

func (*Bubble) SetSize

func (b *Bubble) SetSize(width, height int)

func (Bubble) Update

func (b Bubble) Update(msg tea.Msg) (Bubble, tea.Cmd)

func (Bubble) View

func (b Bubble) View() string

type ReadyMsg added in v0.7.0

type ReadyMsg struct{}

ReadyMsg signals that the inputdata Bubble has loaded the user's data into the viewport

type Styles

type Styles struct {
	// contains filtered or unexported fields
}

func DefaultStyles

func DefaultStyles() (s Styles)

Jump to

Keyboard shortcuts

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