// applyConfig applies the given template configuration.
applyConfig applies the given template configuration.
// applyConfig applies the given template configuration .
func applyConfig(cmd *cobra.Command, args []string) {
	clogger.SetPrefix("start-validation| ")
	fmt.Println()
	clogger.Info("Validating template before applying...")
	validateConfig(cmd, args)
	fmt.Println()
	clogger.SetPrefix("start-apply | ")
	clogger.Info("Applying template config...")
	if len(args) == 0 {
		log.Fatalln("Proffer Configuration file missing: Pls pass proffer config file to apply")
	}
	cfgFileAbsPath, err := filepath.Abs(args[0])
	if err != nil {
		log.Fatal(err)
	}
	executeResources(cfgFileAbsPath)
	if !debug {
		_ = os.Remove("output.yml")
	}
}
func applyConfig ( cmd * cobra . Command , args [ ] string ) { clogger . SetPrefix ( " " ) fmt . Println ( ) clogger . Info ( " " ) validateConfig ( cmd , args ) fmt . Println ( ) clogger . SetPrefix ( " " ) clogger . Info ( " " ) if len ( args ) == 0 { log . Fatalln ( " " ) } cfgFileAbsPath , err := filepath . Abs ( args [ 0 ] ) if err != nil { log . Fatal ( err ) } executeResources ( cfgFileAbsPath ) if ! debug { _ = os . Remove ( " " ) } }
applyConfig applies the given template configuration.
applyConfig applies the given template configuration .
// validate template before applying // apply template // cleanup temp files.