36 lines
884 B
Go
36 lines
884 B
Go
package overlay
|
|
|
|
import (
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/overlay/create"
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/overlay/edit"
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/overlay/list"
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/overlay/show"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
Use: "overlay",
|
|
Short: "Warewulf Overlay Management",
|
|
Long: "Management interface for Warewulf overlays",
|
|
}
|
|
test bool
|
|
)
|
|
|
|
func init() {
|
|
// baseCmd.PersistentFlags().BoolVarP(&test, "test", "t", false, "Testing.")
|
|
|
|
baseCmd.AddCommand(list.GetCommand())
|
|
baseCmd.AddCommand(show.GetCommand())
|
|
baseCmd.AddCommand(create.GetCommand())
|
|
baseCmd.AddCommand(edit.GetCommand())
|
|
|
|
|
|
}
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|