Skip to content

Commit

Permalink
Merge pull request #32 from Comcast/version_exit
Browse files Browse the repository at this point in the history
Exit after version
  • Loading branch information
lewg authored Dec 27, 2023
2 parents 26b17a4 + 0fd938f commit a5fe799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Values can be specified in plain text, or set from a vault server.`,
version, _ := cmd.Flags().GetBool("version")
if version {
fmt.Printf("buildenv version %s\n", Version)
os.Exit(0)
}

ctx := context.Background()
Expand Down

0 comments on commit a5fe799

Please sign in to comment.