diagnostics

package
v0.1.0-alpha.82 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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