Documentation
¶
Overview ¶
Package main is the entry point for the Nexus CLI devtool.
This file is intentionally minimal — it exists only to wire build-time version variables into the version package and call cli.Execute(). All command definitions, TUI logic, and business logic live in internal/.
Build-Time Variables:
These are injected via -ldflags at compile time (see Makefile): -X github.com/Gamingstein/nexus/internal/version.Version=$(VERSION) -X github.com/Gamingstein/nexus/internal/version.Commit=$(COMMIT) -X github.com/Gamingstein/nexus/internal/version.BuildTime=$(BUILD_TIME)
Usage:
go build -ldflags "-s -w -X ..." -o ./bin/nexus ./cmd/nexus ./bin/nexus --help ./bin/nexus init my-backend ./bin/nexus version
Click to show internal directories.
Click to hide internal directories.