diff --git a/cmd/version.go b/cmd/version.go index 6a304dc..717cedf 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,3 +1,4 @@ +// Package cmd is a root command. /* Copyright © 2023 Takafumi Miyanaga @@ -23,6 +24,7 @@ package cmd import "fmt" +// Version is a version of this application. const Version = "0.0.1" // SetVersionInfo sets version and date to rootCmd diff --git a/go.mod b/go.mod index ba9feeb..43dde28 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,9 @@ module github.com/orangekame3/cobra-template go 1.21.0 +require github.com/spf13/cobra v1.7.0 + require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect )