cli

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 22 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
	File   string
	Asset  string
	Source bool
	All    bool
	GUI    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
	File   string
	Asset  string
	Source bool
	All    bool
	Quiet  bool
	Target string
}

type InstallOptions

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

type ListOptions

type ListOptions struct {
	Outdated bool
	All      bool
	GUI      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 SearchOptions added in v1.5.2

type SearchOptions struct {
	Keyword string
	Extras  []string
	Limit   int
	Sort    string
	Order   string
	JSON    bool
}

type UninstallOptions

type UninstallOptions struct {
	Target string
}

type UpdateOptions

type UpdateOptions struct {
	All         bool
	Check       bool
	DryRun      bool
	Interactive bool
	Tag         string
	System      string
	To          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