github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/artifactory/commands/utils/result.go (about)

     1  package utils
     2  
     3  type Result struct {
     4  	successCount int
     5  	failCount    int
     6  }
     7  
     8  func (r *Result) SuccessCount() int {
     9  	return r.successCount
    10  }
    11  
    12  func (r *Result) FailCount() int {
    13  	return r.failCount
    14  }
    15  
    16  func (r *Result) SetSuccessCount(successCount int) {
    17  	r.successCount = successCount
    18  }
    19  
    20  func (r *Result) SetFailCount(failCount int) {
    21  	r.failCount = failCount
    22  }