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 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 ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.