github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/v7pushaction/handle_flag_overrides.go (about)

     1  package v7pushaction
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/util/manifestparser"
     5  )
     6  
     7  func (actor Actor) HandleFlagOverrides(
     8  	baseManifest manifestparser.Manifest,
     9  	flagOverrides FlagOverrides,
    10  ) (manifestparser.Manifest, error) {
    11  	newManifest := baseManifest
    12  
    13  	for _, transformPlan := range actor.TransformManifestSequence {
    14  		var err error
    15  		newManifest, err = transformPlan(newManifest, flagOverrides)
    16  		if err != nil {
    17  			return manifestparser.Manifest{}, err
    18  		}
    19  	}
    20  
    21  	return newManifest, nil
    22  }