diagnostics

package
v0.1.0-alpha.88 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func ViewDiagnostics

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

ViewDiagnostics renders build diagnostics in Rust-style formatting. Notes are hidden by default. oasPath and configPath should be display paths, typically relative to the current working directory.

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
	WorkspaceConfig workspace.Config
}

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