Skip to content

Commit

Permalink
Add --version support (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Sep 27, 2024
1 parent a5590c2 commit 08d2e63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ import (
)

var cfgFile string
var (
gitVersion string
buildTime string
)

// RootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Use: "chia-tools",
Short: "Collection of CLI tools for working with Chia Blockchain",
Version: fmt.Sprintf("%s (%s)", gitVersion, buildTime),
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down

0 comments on commit 08d2e63

Please sign in to comment.