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

     1  package requirements
     2  
     3  type Requirements []Requirement
     4  
     5  func (r Requirements) Execute() error {
     6  	var err error
     7  
     8  	for _, req := range r {
     9  		err = req.Execute()
    10  		if err != nil {
    11  			return err
    12  		}
    13  	}
    14  
    15  	return nil
    16  }