19 lines
380 B
Go
19 lines
380 B
Go
package add
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
Use: "add <profile name>",
|
|
Short: "Add a new node profile",
|
|
Long: "This command will add a new node profile.",
|
|
RunE: CobraRunE,
|
|
Args: cobra.MinimumNArgs(1),
|
|
}
|
|
)
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|