20 lines
336 B
Go
20 lines
336 B
Go
package poweron
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
powerCmd = &cobra.Command{
|
|
Use: "poweron",
|
|
Short: "power on node(s)",
|
|
Long: "turn power on for one or more nodes",
|
|
RunE: CobraRunE,
|
|
}
|
|
)
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return powerCmd
|
|
}
|