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 NewCmdLs() Command {
@ -42,7 +43,7 @@ func LsCmd(ctx Context) (int, error) {
}
p = NewPrinter(format)
p.Lights(lights)
fmt.Print(p.Lights(lights))
return ExitSuccess, nil
}