Skip to content

Commit

Permalink
Merge pull request #463 from pterm/dont-use-fmt-print
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Mar 28, 2023
2 parents b95a645 + 1a69241 commit b33503c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ci/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"bufio"
"fmt"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -38,7 +37,7 @@ func execute(command string) {
log.Panicf("Fail Running [%s] with output [%s] and status [%s]", cmd.String(), output, err)
}
pterm.FgGray.Println(strings.Repeat("-", 80))
fmt.Println(string(output))
pterm.Println(string(output))
pterm.FgGray.Println(strings.Repeat("-", 80))
}

Expand Down
2 changes: 1 addition & 1 deletion interactive_multiselect_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (p *InteractiveMultiselectPrinter) Show(text ...string) ([]string, error) {
return false, nil
})
if err != nil {
fmt.Println(err)
Error.Println(err)
return nil, fmt.Errorf("failed to start keyboard listener: %w", err)
}

Expand Down
2 changes: 1 addition & 1 deletion interactive_select_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (p *InteractiveSelectPrinter) Show(text ...string) (string, error) {
return false, nil
})
if err != nil {
fmt.Println(err)
Error.Println(err)
return "", fmt.Errorf("failed to start keyboard listener: %w", err)
}

Expand Down

0 comments on commit b33503c

Please sign in to comment.