summaryrefslogtreecommitdiff
path: root/novactl/cmd/version.go
blob: 425cd89fc529e7268908c214589017d50f94120d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package cmd

import (
	"fmt"

	"github.com/discordnova/nova/common"
	"github.com/spf13/cobra"
)

var (
	VersionCommand = &cobra.Command{
		Use:   "version",
		Short: "Returns the version of the CLI",
		Run:   version,
	}
)

func version(cmd *cobra.Command, args []string) {
	fmt.Println(fmt.Sprintf("Nova version: %s", common.VERSION))
}