20 lines
354 B
Go
20 lines
354 B
Go
package poweron
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
powerCmd = &cobra.Command{
|
|
Use: "on",
|
|
Short: "Power on the given node(s)",
|
|
Long: "This command will power on a given set of nodes.",
|
|
RunE: CobraRunE,
|
|
}
|
|
)
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return powerCmd
|
|
}
|