buildlog

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildLogKeys = keyMap{
	Up: key.NewBinding(
		key.WithKeys("up"),
		key.WithHelp("↑", "scroll up"),
	),
	Down: key.NewBinding(
		key.WithKeys("down"),
		key.WithHelp("↓", "scroll down"),
	),
	Quit: key.NewBinding(
		key.WithKeys("esc", "ctrl+c"),
		key.WithHelp("esc", "quit"),
	),
	Continue: key.NewBinding(
		key.WithKeys("a"),
		key.WithHelp("a", "auto scroll"),
	),
}

Functions

This section is empty.

Types

type ErrorMessage

type ErrorMessage struct {
	Error error
}

type FunctionsBuiltMessage

type FunctionsBuiltMessage struct{}

type LogMessage

type LogMessage struct {
	Function string
	Message  string
	Info     bool
}

type LogWriter

type LogWriter struct {
	Sub      chan tea.Msg
	Function string
}

func (*LogWriter) Write

func (l *LogWriter) Write(b []byte) (int, error)

type Model

type Model struct {
	Complete bool
	// contains filtered or unexported fields
}

func New

func New(args ModelArgs) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type ModelArgs

type ModelArgs struct {
	Envs    map[string]string
	Project *project.Project
	Sub     chan tea.Msg
}

Jump to

Keyboard shortcuts

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