version

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the version number, set by ldflags during build
	Version = "dev"
	// GitCommit is the git commit hash, set by ldflags during build
	GitCommit = "unknown"
	// BuildTime is the build timestamp, set by ldflags during build
	BuildTime = "unknown"
)
View Source
var Cmd = &cobra.Command{
	Use:   "version",
	Short: "显示版本信息",
	Long:  `显示 aic-cli 的版本信息,包括版本号、Git提交哈希和构建时间。`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("aic-cli version %s\n", Version)
		fmt.Printf("Git commit: %s\n", GitCommit)
		fmt.Printf("Build time: %s\n", BuildTime)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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