github.com/loafoe/cli@v7.1.0+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  }