We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0495f65 commit 611d71dCopy full SHA for 611d71d
cmd/semantic-release/main.go
@@ -20,10 +20,15 @@ func main() {
20
noci := flag.Bool("noci", false, "run semantic-release locally")
21
dry := flag.Bool("dry", false, "do not create release")
22
vFile := flag.Bool("vf", false, "create a .version file")
23
+ showVersion := flag.Bool("version", false, "outputs the semantic-release version")
24
flag.Parse()
25
26
+ if *showVersion {
27
+ fmt.Printf("semantic-release v%s", SRVERSION)
28
+ return
29
+ }
30
+
31
logger := log.New(os.Stderr, "[semantic-release]: ", 0)
- logger.Println("cli version: " + SRVERSION)
32
33
if *token == "" {
34
logger.Println("github token missing")
0 commit comments