Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Merge pull request #511 from mjura/issue#412
Browse files Browse the repository at this point in the history
skuba: Show skuba version on stdout
  • Loading branch information
mjura authored Jul 25, 2019
2 parents 078747a + 08bc506 commit 0de8752
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/app/skuba/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package skuba

import (
"fmt"
"os"

"github.com/spf13/cobra"

Expand All @@ -31,7 +30,7 @@ func NewVersionCmd() *cobra.Command {
Use: "version",
Short: "Print version information",
Run: func(cmd *cobra.Command, args []string) {
fmt.Fprintf(os.Stderr, "%s\n", skuba.CurrentVersion().String())
fmt.Printf("%s\n", skuba.CurrentVersion().String())
},
}
}

0 comments on commit 0de8752

Please sign in to comment.