Make everything build strings instead of printing

This commit is contained in:
2021-04-23 22:56:58 +00:00
parent 8c9af693e7
commit dd1ea7c276
12 changed files with 121 additions and 65 deletions

View File

@ -2,6 +2,7 @@ package lumecmd
import (
"flag"
"fmt"
)
func NewCmdToggle() Command {
@ -45,7 +46,7 @@ func ToggleCmd(ctx Context) (int, error) {
}
p = NewPrinter(format)
p.Results(r.Results)
fmt.Print(p.Results(r.Results))
return ExitSuccess, nil
}