dev

package
v0.1.0-alpha.65 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserCancelled = errors.New("user cancelled")

Functions

func ViewBuildRange

func ViewBuildRange(m *Model, startView, endView string) string

ViewBuildRange renders the build view from startView to endView (inclusive) Returns empty string if views are not found

Types

type ErrorMsg

type ErrorMsg error

type FileChangeMsg

type FileChangeMsg struct{}

type Model

type Model struct {
	Err error

	Client      stainless.Client
	Ctx         context.Context
	Watch       bool
	IsCompleted bool

	Branch string

	Help        help.Model
	Build       build.Model
	Diagnostics diagnostics.Model
	// contains filtered or unexported fields
}

func NewModel

func NewModel(client stainless.Client, ctx context.Context, branch string, fn func() (*stainless.Build, error), downloadPaths map[stainless.Target]string, watch bool) Model

func (Model) FullHelp

func (m Model) FullHelp() [][]key.Binding

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) ShortHelp

func (m Model) ShortHelp() []key.Binding

func (Model) Update

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

func (Model) View

func (m Model) View() string

type TickMsg

type TickMsg time.Time

type ViewPart

type ViewPart struct {
	Name string
	View func(*Model, *strings.Builder)
}

ViewPart represents a single part of the build view

Jump to

Keyboard shortcuts

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