36b3af2e3d
PR Check / Code Quality: Format (push) Failing after 1s
PR Check / Code Quality: Lint (darwin) (push) Failing after 0s
PR Check / Code Quality: Lint (freebsd) (push) Failing after 1s
PR Check / Code Quality: Lint (windows) (push) Failing after 1s
PR Check / Code Quality: Lint (linux) (push) Failing after 1s
PR Check / Security: Vulnerability Scan (push) Failing after 0s
Update Documentation / update-docs (push) Failing after 2s
PR Check / Code Quality: Vendor (push) Failing after 1s
PR Check / Code Quality: Coverage (push) Failing after 0s
PR Check / Tests: Unit (macos-latest) (push) Has been cancelled
PR Check / Tests: Unit (ubuntu-24.04) (push) Has been cancelled
PR Check / Tests: Unit (ubuntu-24.04-arm) (push) Has been cancelled
PR Check / Tests: Unit (windows-latest) (push) Has been cancelled
20 lines
764 B
Go
20 lines
764 B
Go
//go:build linux || darwin || freebsd || windows
|
|
|
|
//go:generate go run ../../internal/tools/docgen -format man -out ../../docs/cli
|
|
//go:generate go run ../../internal/tools/docgen -format markdown -out ../../docs/cli
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/pranshuparmar/witr/internal/app"
|
|
"github.com/pranshuparmar/witr/internal/version"
|
|
)
|
|
|
|
// Override version at build time with ldflags:
|
|
// go build -ldflags "-X github.com/pranshuparmar/witr/internal/version.Version=v0.3.0 -X github.com/pranshuparmar/witr/internal/version.Commit=$(git rev-parse --short HEAD) -X 'github.com/pranshuparmar/witr/internal/version.BuildDate=$(date +%Y-%m-%d)'" -o witr ./cmd/witr
|
|
|
|
func main() {
|
|
app.SetVersion(version.Version, version.Commit, version.BuildDate)
|
|
app.Execute()
|
|
}
|