cmd

package
v0.1.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

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

func NewRootCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL