Files
wehub-resource-sync a06f331eb8
CI / benchmark (push) Has been skipped
install-script / posix-syntax (push) Successful in 6m1s
CI / build-onnx (push) Failing after 6m43s
init-smoke / dry-run (push) Failing after 15m57s
security / govulncheck (push) Has been cancelled
security / trivy-fs (push) Has been cancelled
CI / test (1.26, ubuntu-latest) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
CI / test (1.26, macos-latest) (push) Has been cancelled
CI / build-windows (push) Has been cancelled
CI / lint (push) Has been cancelled
install-script / powershell-syntax (push) Has been cancelled
install-script / install (macos-14) (push) Has been cancelled
install-script / install (ubuntu-latest) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:33:42 +08:00

23 lines
850 B
Go

package main
import "github.com/zzet/gortex/internal/progress"
// Build-time variables injected via `-X` ldflags. goreleaser populates
// them from git state; `make build` does the same via Makefile variables.
// When built with plain `go build`, all three stay at their defaults and
// `gortex version` prints a clear "(dev build)" notice.
//
// Order matters for goreleaser ldflag templates — keep these unchanged.
var (
version = "0.60.0" // SemVer 2.0.0 string without build slot (e.g. "0.1.0", "0.1.0-rc1")
commit = "" // short git SHA (e.g. "abc1234"); becomes +<build> in the canonical form
date = "" // RFC-3339 build timestamp
)
func main() {
// A panic that unwinds out of a command must not leave the terminal with
// a hidden cursor from a live progress animation.
defer progress.RestoreTerminal()
execute()
}