Files
warewulf/internal/app/wwctl/overlay/create/root.go
Christian Goll 17a5aaefee added more aliases for wwctl commands
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-03-20 21:11:14 -06:00

26 lines
603 B
Go

package create
import (
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Use: "create [OPTIONS] OVERLAY_NAME",
Short: "Initialize a new Overlay",
Aliases: []string{"new", "add"},
Long: "This command creates a new empty overlay with the given OVERLAY_NAME.",
RunE: CobraRunE,
Args: cobra.ExactArgs(1),
}
)
func init() {
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}