Files
DevPack/cmd/devpack/commands/version.go
2026-03-04 10:14:12 +08:00

19 lines
320 B
Go

package commands
import (
"fmt"
"github.com/spf13/cobra"
"github.com/user/devpack/pkg/version"
)
func newVersionCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "显示版本信息",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(version.GetFullVersionInfo())
},
}
}