vm

package
v0.0.0-...-2e13202 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalExec

func LocalExec(command string) (string, error)

LocalExec runs a command locally and returns the output

func LocalExecStream

func LocalExecStream(command string) error

LocalExecStream runs a command locally with stdout/stderr piped to the terminal

func LocalInteractive

func LocalInteractive(command string) error

LocalInteractive runs a command locally with full stdin/stdout/stderr attached

func PrintPreflightErrors

func PrintPreflightErrors(result *PreflightResult)

PrintPreflightErrors prints formatted preflight errors with fix instructions

Types

type PreflightError

type PreflightError struct {
	Check      string
	Message    string
	FixCommand string
	FixURL     string
}

PreflightError contains details about a failed preflight check

func (*PreflightError) Error

func (e *PreflightError) Error() string

type PreflightResult

type PreflightResult struct {
	Errors []PreflightError
}

PreflightResult holds the results of all preflight checks

func (*PreflightResult) AddError

func (r *PreflightResult) AddError(check, message, fixCommand, fixURL string)

func (*PreflightResult) HasErrors

func (r *PreflightResult) HasErrors() bool

Jump to

Keyboard shortcuts

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