Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion internal/cliio/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type Printer interface {
SetErrOut(errOut io.Writer)
SetPagerMode(mode string) error
Print(str string)
Println(str string)
PrintError(err error)
PrintTime(time time.Duration)
PrintViaPager(str string)
Expand Down Expand Up @@ -120,7 +121,11 @@ func (p *pgxPrinter) SetPagerMode(mode string) error {

// Print writes regular output to the configured output stream.
func (p *pgxPrinter) Print(str string) {
printInfo(p.out, str)
printInfo(p.out, Detail.Render(str))
}

func (p *pgxPrinter) Println(str string) {
printInfo(p.out, Detail.Render(str)+"\n")
}

// PrintError writes an error message to the configured error stream.
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ func main() {
printer.PrintError(err)
os.Exit(1)
}

printer.Println("Thanks for using Pgxcli.")
printer.Println("see you next time.")
}
Loading