Added overlay build option to wwctl

This commit is contained in:
Christian Goll
2022-02-14 14:31:44 +01:00
committed by jcsiadal
parent 8d2d10d4ab
commit 3a200a43f7
2 changed files with 32 additions and 21 deletions

View File

@@ -10,10 +10,13 @@ var (
Long: "This command builds overlays for given nodes.",
RunE: CobraRunE,
}
BuildHost bool
BuildNodes bool
)
func init() {
//baseCmd.PersistentFlags().BoolVarP(&BuildAll, "all", "a", false, "Build overlays for all nodes")
baseCmd.PersistentFlags().BoolVarP(&BuildHost, "host", "H", false, "Build overlays only for the host")
baseCmd.PersistentFlags().BoolVarP(&BuildNodes, "nodes", "N", false, "Build overlays only for the nodes")
}
// GetRootCommand returns the root cobra.Command for the application.