Skip to content

Commit

Permalink
mod: new release
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolosLykos committed Sep 6, 2022
1 parent 85a93de commit a66152e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func NewRootCmd() *cobra.Command {
Short: "This cli template shows nothing",
Long: `This is a template CLI application, which can be used as a boilerplate for awesome CLI tools written in Go.`,
Example: `cli-template`,
Version: "v0.0.1", // <--VERSION-->
Version: "v0.0.3", // <--VERSION-->
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println(cmd.UsageString())

Expand Down
3 changes: 1 addition & 2 deletions cmd/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
)

func TestVersionCommand(t *testing.T) {
version := "v0.0.1"
command := cmd.NewRootCmd()

b := bytes.NewBufferString("")
Expand All @@ -27,5 +26,5 @@ func TestVersionCommand(t *testing.T) {
out, err := ioutil.ReadAll(b)
require.NoError(t, err)

assert.Equal(t, fmt.Sprintln(version), string(out))
assert.Equal(t, fmt.Sprintln(command.Version), string(out))
}

0 comments on commit a66152e

Please sign in to comment.