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"
"git.kill0.net/chill9/lifx-go"
)
@ -48,7 +49,7 @@ func PoweronCmd(ctx Context) (int, error) {
}
p = NewPrinter(format)
p.Results(r.Results)
fmt.Print(p.Results(r.Results))
return ExitSuccess, nil
}