PKGBUILD/cmd/remote/list.go
Markus Pesch 500d1a5823
fix: splited temperatures
Changes:
- Split temperatures from log file into blocks.
  Every block has a size of 500 entries. Every block would be send to
  the remote host
2018-12-07 22:50:28 +01:00

30 lines
536 B
Go

package remote
import (
"log"
"os"
"git.cryptic.systems/fh-trier/go-flucky/pkg/remote"
"github.com/spf13/cobra"
)
var quiet bool
var listRemoteCmd = &cobra.Command{
Use: "list",
Short: "List Remove Servers",
Aliases: []string{"ls"},
Run: func(cmd *cobra.Command, args []string) {
if err := remote.Print(os.Stdout, configDir, quiet); err != nil {
log.Fatal(err)
}
},
}
func init() {
remoteCmd.AddCommand(listRemoteCmd)
listRemoteCmd.Flags().BoolVarP(&quiet, "quiet", "q", false, "List only sensor id's")
}