allow the build of specific overlays

This commit is contained in:
Christian Goll
2022-03-11 15:03:15 +01:00
parent d4e42b7b83
commit 1098771c83
2 changed files with 15 additions and 4 deletions

View File

@@ -10,13 +10,16 @@ var (
Long: "This command builds overlays for given nodes.",
RunE: CobraRunE,
}
BuildHost bool
BuildNodes bool
BuildHost bool
BuildNodes bool
OverlayName string
)
func init() {
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")
baseCmd.PersistentFlags().StringVarP(&OverlayName, "overlay", "o", "", "Build only specific overlay")
}
// GetRootCommand returns the root cobra.Command for the application.