fix: moved print functions into cli pkg
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"git.cryptic.systems/fh-trier/go-flucky/pkg/cli"
|
||||
"git.cryptic.systems/fh-trier/go-flucky/pkg/config"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@ -24,7 +25,7 @@ var listRemoteCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
// print all configured remote addresses on stdout
|
||||
err = fc.PrintRemotes(os.Stdout)
|
||||
err = cli.PrintRemotes(fc, os.Stdout)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"git.cryptic.systems/fh-trier/go-flucky/pkg/cli"
|
||||
"git.cryptic.systems/fh-trier/go-flucky/pkg/config"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
@ -20,7 +21,7 @@ var listSensorCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
// print sensors on stdout
|
||||
err = fc.PrintSensors(os.Stdout)
|
||||
err = cli.PrintSensors(fc, os.Stdout)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user