diagnostics

package
v0.1.0-alpha.59 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func ViewDiagnosticIcon

func ViewDiagnosticIcon(level stainless.BuildDiagnosticLevel) string

ViewDiagnosticIcon returns a colored icon for a diagnostic level

func ViewDiagnostics

func ViewDiagnostics(diagnostics []stainless.BuildDiagnostic, maxDiagnostics int) string

ViewDiagnostics renders build diagnostics with formatting

func ViewDiagnosticsError

func ViewDiagnosticsError(err error) string

ViewDiagnosticsError renders an error when fetching diagnostics fails

Types

type ErrorMsg

type ErrorMsg error

type FetchDiagnosticsMsg

type FetchDiagnosticsMsg []stainless.BuildDiagnostic

type Model

type Model struct {
	Diagnostics []stainless.BuildDiagnostic
	Client      stainless.Client
	Ctx         context.Context
	Err         error
}

func NewModel

func NewModel(client stainless.Client, ctx context.Context, diagnostics []stainless.BuildDiagnostic) Model

func (Model) FetchDiagnostics

func (m Model) FetchDiagnostics(buildID string) tea.Cmd

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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