cli

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented")
)

Functions

func Main

func Main(args []string, stdout, stderr io.Writer) error

func SetBuildInfo

func SetBuildInfo(versionStr, gitHashStr, buildTimeStr string)

SetBuildInfo sets the build information for the application.

Types

type AddOptions

type AddOptions struct {
	Name     string
	Tag      string
	System   string
	To       string
	CacheDir string
	File     string
	Asset    string
	Source   bool
	All      bool
	Quiet    bool
	Target   string
}

type App

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

func (*App) RunWithArgs

func (a *App) RunWithArgs(args []string) error

func (*App) Verbose

func (a *App) Verbose() bool

type CommandHandler

type CommandHandler func(name string, options any) error

type ConfigOptions

type ConfigOptions struct {
	Action string
	Key    string
	Value  string
}

type DownloadOptions

type DownloadOptions struct {
	Tag      string
	System   string
	To       string
	CacheDir string
	File     string
	Asset    string
	Source   bool
	All      bool
	Quiet    bool
	Target   string
}

type InstallOptions

type InstallOptions struct {
	Tag      string
	System   string
	To       string
	CacheDir string
	File     string
	Asset    string
	Name     string
	Source   bool
	All      bool
	Quiet    bool
	Add      bool
	Target   string
}

type ListOptions

type ListOptions struct {
	Outdated bool
	Info     string
}

type QueryOptions added in v1.5.1

type QueryOptions struct {
	Action     string
	Tag        string
	Limit      int
	JSON       bool
	Prerelease bool
	Target     string
}

type UninstallOptions

type UninstallOptions struct {
	Target string
}

type UpdateOptions

type UpdateOptions struct {
	All         bool
	DryRun      bool
	Interactive bool
	Tag         string
	System      string
	To          string
	CacheDir    string
	File        string
	Asset       string
	Source      bool
	Quiet       bool
	Target      string
}

Jump to

Keyboard shortcuts

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