/progress

:hourglass_flowing_sand: Terminal progress written in Kotlin

Primary LanguageKotlinMIT LicenseMIT

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