From 3ca0118c502a7b8e30677c29bf7daa6a81b89abb Mon Sep 17 00:00:00 2001 From: orangekame3 Date: Sat, 7 Oct 2023 13:12:17 +0900 Subject: [PATCH] udpat --- cmd/version.go | 2 ++ go.mod | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 )