Skip to content

Commit

Permalink
replace fmt with log package
Browse files Browse the repository at this point in the history
  • Loading branch information
qu0b committed Feb 23, 2024
1 parent f0a6f6f commit df5b9a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cmd

import (
"fmt"
"log"
"os"

Expand All @@ -17,17 +16,17 @@ var rootCmd = &cobra.Command{
Short: "Runs a configured test until completion or error",
Run: func(cmd *cobra.Command, _ []string) {
if version && buildinfo.BuildRelease != "" {
fmt.Printf("Release: %s\n", buildinfo.BuildRelease)
log.Printf("Release: %s\n", buildinfo.BuildRelease)
return
}

if version && buildinfo.BuildVersion != "" {
fmt.Printf("Version: %s\n", buildinfo.BuildVersion)
log.Printf("Version: %s\n", buildinfo.BuildVersion)
return
}

if version {
fmt.Printf("Local build; Unknown version\n")
log.Printf("Local build; Unknown version\n")
return
}

Expand Down

0 comments on commit df5b9a5

Please sign in to comment.