R/print.R

Defines functions print.circle_projects print.circle_builds

#' @export
print.circle_projects <- 
function(x, ...) {
    m <- sprintf(ngettext(length(x), "List of %d project", "List of %d projects", domain = NULL), length(x))
    cat(m)
    invisible(x)
}

#' @export
print.circle_builds <- 
function(x, ...) {
    m <- sprintf(ngettext(length(x), "List of %d build", "List of %d builds", domain = NULL), length(x))
    cat(m)
    invisible(x)
}
cloudyr/circleci documentation built on May 13, 2019, 8:20 p.m.