Lots of changes including: wwctl overlay list and framework for other commands

This commit is contained in:
Gregory Kurtzer
2020-11-16 21:37:55 -08:00
parent 52eb51e38a
commit 85603ee947
19 changed files with 484 additions and 34 deletions

View File

@@ -0,0 +1,25 @@
package create
import (
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
Use: "create",
Short: "Initialize a new Overlay",
Long: "Create a new Warewulf provisioning overlay",
RunE: CobraRunE,
}
SystemOverlay bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&SystemOverlay, "system", "s", false, "Show System Overlays as well")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}