cmd/version
seems to think that the current project is gocket
. I believe the fix is just a simple rename
|
func versionCmd() *cobra.Command { |
|
versionCmd := &cobra.Command{ |
|
Use: "version", |
|
Short: "Display gocket version", |
|
Run: func(cmd *cobra.Command, args []string) { |
|
fmt.Fprintln(os.Stdout, version()) |
|
}, |
|
} |
|
|
|
return versionCmd |
|
} |
|
|
|
func version() string { |
|
program := "gocket" |
|
|
|
osArch := runtime.GOOS + "/" + runtime.GOARCH |
|
|
|
date := buildDate |
|
if date == "" { |
|
date = "unknown" |
|
} |
|
|
|
return fmt.Sprintf("%s %s %s BuildDate=%s", program, current, osArch, date) |
|
} |