Skip to content

Commit e30ab58

Browse files
committed
chore: optimize build info
1 parent 205f7d1 commit e30ab58

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/root.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ THE SOFTWARE.
2222
package cmd
2323

2424
import (
25-
"fmt"
2625
"github.com/betterde/gonew/internal/build"
2726
"os"
2827

@@ -33,7 +32,7 @@ import (
3332
var rootCmd = &cobra.Command{
3433
Use: build.Name,
3534
Short: build.Desc,
36-
Version: fmt.Sprintf("Version: %s\n", build.Version),
35+
Version: build.Version,
3736
}
3837

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

internal/build/info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package build
33
var (
44
Name = "gonew"
55
Desc = "A scaffolding tool for generating new projects using project templates"
6-
Version = "v1.0.1"
6+
Version = "v1.0.2"
77
)

0 commit comments

Comments
 (0)