mirror of
https://github.com/miguelmota/cointop
synced 2024-11-10 13:10:26 +00:00
21 lines
403 B
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
|
|
}
|