First pass at a rework of the overlay subsystem in Warewulf
This commit is contained in:
@@ -5,17 +5,15 @@ import "github.com/spf13/cobra"
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "build [OPTIONS] {system|runtime} OVERLAY_NAME",
|
||||
Short: "(Re)build an overlay",
|
||||
Long: "This command builds a new system or runtime overlay named OVERLAY_NAME.",
|
||||
RunE: CobraRunE,
|
||||
Args: cobra.RangeArgs(0, 2),
|
||||
Use: "build [OPTIONS] NODENAME...",
|
||||
Short: "(Re)build node overlays",
|
||||
Long: "This command builds overlays for given nodes.",
|
||||
RunE: CobraRunE,
|
||||
}
|
||||
BuildAll bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
baseCmd.PersistentFlags().BoolVarP(&BuildAll, "all", "a", false, "Build all overlays (runtime and system)")
|
||||
//baseCmd.PersistentFlags().BoolVarP(&BuildAll, "all", "a", false, "Build overlays for all nodes")
|
||||
}
|
||||
|
||||
// GetRootCommand returns the root cobra.Command for the application.
|
||||
|
||||
Reference in New Issue
Block a user