// RunBuild runs build command.
RunBuild runs build command.
// RunBuild runs build command .
func (o *Options) RunBuild(
	out io.Writer, v ifc.Validator, fSys fs.FileSystem,
	rf *resmap.Factory, ptf transformer.Factory,
	pl *plugins.Loader) error {
	ldr, err := loader.NewLoader(
		o.loadRestrictor, v, o.kustomizationPath, fSys)
	if err != nil {
		return err
	}
	defer ldr.Cleanup()
	kt, err := target.NewKustTarget(ldr, rf, ptf, pl)
	if err != nil {
		return err
	}
	m, err := kt.MakeCustomizedResMap()
	if err != nil {
		return err
	}
	return o.emitResources(out, fSys, m)
}
func ( o * Options ) RunBuild ( out io . Writer , v ifc . Validator , fSys fs . FileSystem , rf * resmap . Factory , ptf transformer . Factory , pl * plugins . Loader ) error { ldr , err := loader . NewLoader ( o . loadRestrictor , v , o . kustomizationPath , fSys ) if err != nil { return err } defer ldr . Cleanup ( ) kt , err := target . NewKustTarget ( ldr , rf , ptf , pl ) if err != nil { return err } m , err := kt . MakeCustomizedResMap ( ) if err != nil { return err } return o . emitResources ( out , fSys , m ) }
RunBuild runs build command.
RunBuild runs build command .