code: func (l *listCmd) statusCodes() []release.Status_Code {
  	if l.all {
  		return []release.Status_Code{
  			release.Status_UNKNOWN,
  			release.Status_DEPLOYED,
  			release.Status_DELETED,
  			release.Status_DELETING,
  			release.Status_FAILED,
  			release.Status_PENDING_INSTALL,
  			release.Status_PENDING_UPGRADE,
  			release.Status_PENDING_ROLLBACK,
  		}
  	}
  	status := []release.Status_Code{}
  	if l.deployed {
  		status = append(status, release.Status_DEPLOYED)
  	}
  	if l.deleted {
  		status = append(status, release.Status_DELETED)
  	}
  	if l.deleting {
  		status = append(status, release.Status_DELETING)
  	}
  	if l.failed {
  		status = append(status, release.Status_FAILED)
  	}
  	if l.superseded {
  		status = append(status, release.Status_SUPERSEDED)
  	}
  	if l.pending {
  		status = append(status, release.Status_PENDING_INSTALL, release.Status_PENDING_UPGRADE, release.Status_PENDING_ROLLBACK)
  	}
  
  	// Default case.
  	if len(status) == 0 {
  		status = append(status, release.Status_DEPLOYED, release.Status_FAILED)
  	}
  	return status
  }
docs: // statusCodes gets the list of status codes that are to be included in the results.