Files
warewulf/internal/app/wwctl/node/sensors/root.go
2020-12-18 18:57:03 -06:00

25 lines
459 B
Go

package sensors
import (
"github.com/spf13/cobra"
)
var (
powerCmd = &cobra.Command{
Use: "sensors",
Short: "node sensor information",
Long: "Get Node Sensor Information",
RunE: CobraRunE,
}
full bool
)
func init() {
powerCmd.PersistentFlags().BoolVarP(&full, "full", "F", false, "show detailed output.")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return powerCmd
}