Skip to content

importre/progress

Repository files navigation

progress

progress

Install

download
repositories {
    jcenter()
}

dependencies {
    compile "com.importre:progress:$progress_version"
}

Examples

progress {
    // long-term job
    Thread.sleep(1500)
}

progress(message = "",
    frames = Frames.dots8.map(String::blue),
    done = Frames.done.green()) {

    // long-term job
    (0..100).forEach {
        message = "$it%".bold()
        Thread.sleep(50)
    }
}

Execution

$ ./gradlew -q example:run

License

MIT © Jaewe Heo