修改git过滤文件
This commit is contained in:
18
cmd/devpack/commands/version.go
Normal file
18
cmd/devpack/commands/version.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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())
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user