Make everything build strings instead of printing
This commit is contained in:
@ -2,6 +2,7 @@ package lumecmd
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"git.kill0.net/chill9/lifx-go"
|
||||
)
|
||||
@ -102,7 +103,7 @@ func BreatheCmd(ctx Context) (int, error) {
|
||||
}
|
||||
|
||||
p = NewPrinter(format)
|
||||
p.Results(r.Results)
|
||||
fmt.Print(p.Results(r.Results))
|
||||
|
||||
return ExitSuccess, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user