monero-exporter/cmd/monero-exporter/version.go
Ciro S. Costa 80fe913813 add goreleaser; update go-monero, use cobra
Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
2021-07-11 07:31:40 -04:00

21 lines
276 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
)
var (
version = "dev"
commit = "dev"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "print the version of this CLI",
Run: func(_ *cobra.Command, _ []string) {
fmt.Println(version, commit)
},
}