sys

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 15 Imported by: 0 modules, 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 (
	ErrInvalidArchive          = errors.New("invalid archive used")
	ErrVersionNotFound         = errors.New("version not found")
	ErrUnsupportedOS           = errors.New("unsupported OS")
	ErrUnsupportedArchitecture = errors.New("unsupported architecture")
)

Functions

This section is empty.

Types

type CheckSetupQuery

type CheckSetupQuery struct {
	bus.Returns[bus.Void]
}

func (CheckSetupQuery) MessageName

func (CheckSetupQuery) MessageName() string

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(tui tui, github githubClient) *Manager

func (*Manager) CheckSetup

func (m *Manager) CheckSetup(_ context.Context, query CheckSetupQuery) error

func (*Manager) UpdateSelf

func (m *Manager) UpdateSelf(_ context.Context, cmd UpdateSelfCommand) error

func (*Manager) VerifySetup

func (m *Manager) VerifySetup() error

type Tool

type Tool struct {
	Cmd     string
	SubCmds []Tool
}

type ToolNotFoundError

type ToolNotFoundError struct {
	Tool string
}

func (ToolNotFoundError) Error

func (err ToolNotFoundError) Error() string

type ToolsNotFoundError

type ToolsNotFoundError struct {
	Errs []ToolNotFoundError
}

func (ToolsNotFoundError) Error

func (err ToolsNotFoundError) Error() string

type UpdateSelfCommand

type UpdateSelfCommand struct {
	bus.Returns[bus.Void]

	Strategy         VersioningStrategy
	SpecifiedVersion string
}

func (UpdateSelfCommand) MessageName

func (UpdateSelfCommand) MessageName() string

type VersioningStrategy

type VersioningStrategy string
const VersioningStrategyLatest VersioningStrategy = "latest"
const VersioningStrategySpecific VersioningStrategy = "specific"

Jump to

Keyboard shortcuts

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