Optimizing pull to automatically build the VNFS and set default if requested

This commit is contained in:
Gregory Kurtzer
2020-12-13 20:35:47 -08:00
parent 5c23ef9f94
commit 487f45f7a9
2 changed files with 29 additions and 6 deletions

View File

@@ -10,15 +10,17 @@ var (
RunE: CobraRunE,
Args: cobra.MinimumNArgs(1),
}
SetForce bool
SetUpdate bool
SetBuild bool
SetForce bool
SetUpdate bool
SetBuild bool
SetDefault bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&SetForce, "force", "f", false, "Force overwrite of an existing container")
baseCmd.PersistentFlags().BoolVarP(&SetUpdate, "update", "u", false, "Update and overwrite an existing container")
baseCmd.PersistentFlags().BoolVarP(&SetBuild, "build", "b", false, "Build container when after pulling")
baseCmd.PersistentFlags().BoolVar(&SetDefault, "setdefault", false, "Set this container for the default profile")
}