Track bundled vendor runtime sources
This commit is contained in:
17
vendor/aigcpanel/cli/cmd/version.go
vendored
Normal file
17
vendor/aigcpanel/cli/cmd/version.go
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"aigcpanel-cli/internal"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var versionCmd = &cobra.Command{
|
||||
Use: "version",
|
||||
Short: "Print version information",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return internal.PrintJSON(map[string]string{
|
||||
"version": appVersion,
|
||||
})
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user