You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/cmd/commands/version.go

21 lines
403 B
Go

package cmd
import (
"github.com/miguelmota/cointop/cointop"
"github.com/spf13/cobra"
)
// VersionCmd ...
func VersionCmd() *cobra.Command {
versionCmd := &cobra.Command{
Use: "version",
Short: "Displays the current version",
Long: `The version command displays the current version`,
Run: func(cmd *cobra.Command, args []string) {
cointop.PrintVersion()
},
}
return versionCmd
}