20 lines
331 B
Go
20 lines
331 B
Go
package powerstatus
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
powerCmd = &cobra.Command{
|
|
Use: "powerstatus",
|
|
Short: "node power status",
|
|
Long: "Get Node Power Status",
|
|
RunE: CobraRunE,
|
|
}
|
|
)
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return powerCmd
|
|
}
|