cmd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAborted = errors.New("")

ErrAborted is returned when the user presses ESC or Ctrl+C to cancel a picker or confirmation prompt. main.go treats this as a clean exit (no error message, exit code 0).

Functions

func Execute

func Execute() error

func SetBuildInfo

func SetBuildInfo(v, c, d string)

SetBuildInfo is called from main with values injected at link time (-ldflags "-X main.version=... -X main.commit=... -X main.date=..."). When fields are empty, values are read from debug.BuildInfo so `go install` builds still show useful detail.

func SetVersion

func SetVersion(v string)

SetVersion is retained for backwards compatibility with older main.go.

Types

type AppContext

type AppContext struct {
	ConfigDir  string
	ModelsDir  string
	LogDir     string
	LlamaBin   string
	Verbose    bool
	NoColor    bool
	Printer    *output.Printer
	StateStore *state.Store
}

Jump to

Keyboard shortcuts

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