github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/util/testhelpers/commands/requirements.go (about)

     1  package commands
     2  
     3  import "code.cloudfoundry.org/cli/cf/requirements"
     4  
     5  func RunRequirements(reqs []requirements.Requirement) error {
     6  	var retErr error
     7  
     8  	for _, req := range reqs {
     9  		if err := req.Execute(); err != nil {
    10  			retErr = err
    11  			break
    12  		}
    13  	}
    14  
    15  	return retErr
    16  }