Phantas0s/devdash

Remaining copypaste from gocket

Opened this issue · 0 comments

h7x4 commented

cmd/version seems to think that the current project is gocket. I believe the fix is just a simple rename

devdash/cmd/version.go

Lines 16 to 39 in e33bd83

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)
}