diagnostics

package
v0.1.0-alpha.86 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 14 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 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