Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trueleo committed Aug 21, 2023
1 parent 4ef9d68 commit a233154
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,16 @@ var VersionCmd = &cobra.Command{
// PrintVersion prints version information
func PrintVersion(version, commit string) {
client := DefaultClient()
about, err := FetchAbout(&client)

fmt.Printf("\n%s \n", standardStyleAlt.Render("pb version"))
fmt.Printf("- %s %s\n", standardStyleBold.Render("version: "), version)
fmt.Printf("- %s %s\n\n", standardStyleBold.Render("commit: "), commit)

if err != nil {
if err := PreRun(); err != nil {
return
}

if err := PreRun(); err != nil {
about, err := FetchAbout(&client)
if err != nil {
return
}

Expand Down

0 comments on commit a233154

Please sign in to comment.