Add flag --build to wwctl container copy, default false

Signed-off-by: xu yang <xyang@ciq.com>
This commit is contained in:
xu yang
2024-09-19 23:26:18 +00:00
committed by Jonathon Anderson
parent 6796a69c3f
commit 1f492dfed5
9 changed files with 383 additions and 324 deletions

View File

@@ -22,10 +22,12 @@ var (
return list, cobra.ShellCompDirectiveNoFileComp
},
}
Build bool
)
func init() {
// Nothing to do here
baseCmd.PersistentFlags().BoolVarP(&Build, "build", "b", false, "Build container after copy")
}
// GetRootCommand returns the root cobra.Command for the application.