5// Build-time parameters set via -ldflags
9// A user may install crush using `go install github.com/charmbracelet/crush@latest`.
10// without -ldflags, in which case the version above is unset. As a workaround
11// we use the embedded build version that *is* set when using `go install` (and
12// is only set for `go install` and not for `go build`).
14 info, ok := debug.ReadBuildInfo()
18 mainVersion := info.Main.Version
19 if mainVersion != "" && mainVersion != "(devel)" {
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list