Skip to content

Commit b09d921

Browse files
feat: print version on start
1 parent b6790a3 commit b09d921

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/semantic-release/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
"strings"
1313
)
1414

15+
var SRVERSION string
16+
1517
func main() {
1618
token := flag.String("token", os.Getenv("GITHUB_TOKEN"), "github token")
1719
slug := flag.String("slug", os.Getenv("TRAVIS_REPO_SLUG"), "slug of the repository")
@@ -22,6 +24,7 @@ func main() {
2224
flag.Parse()
2325

2426
logger := log.New(os.Stderr, "[semantic-release]: ", 0)
27+
logger.Println("cli version: " + SRVERSION)
2528

2629
if *token == "" {
2730
logger.Println("github token missing")

0 commit comments

Comments
 (0)