package create

import (
	"os"

	"github.com/hpcng/warewulf/internal/pkg/overlay"
	"github.com/hpcng/warewulf/internal/pkg/wwlog"
	"github.com/spf13/cobra"
)

func CobraRunE(cmd *cobra.Command, args []string) error {

	err := overlay.OverlayInit(args[0])
	if err != nil {
		wwlog.Error("%s\n", err)
		os.Exit(1)
	}

	return nil
}
