Documentation
¶
Overview ¶
Package cmd wires the cobra command tree for the civitai CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
NewRootCmd builds the root command with all subcommands attached.
func SetBuildInfo ¶
func SetBuildInfo(v, c, d string)
SetBuildInfo lets main inject the build version, commit, and date. Goreleaser release binaries pass real ldflag values, which are authoritative. For a plain `go install github.com/civitai/cli/cmd/civitai@latest` (or any source build), the ldflags are absent and the injected values are still the "dev" defaults — in that case we fall back to runtime/debug.ReadBuildInfo so `civitai version` reports the module version (e.g. v0.1.1 or a pseudo-version) and the embedded VCS revision/time instead of dev/none/unknown.
Types ¶
This section is empty.