ProgressBar

class ProgressBar(taskName: String, completion: Int, currentStatus: Int = 0)

Progress bar in the console.

Parameters

taskName

shown name of task at the beginning of the progress bar

completion

maximum steps to until the task is completed

currentStatus

current progress status

Constructors

Link copied to clipboard
constructor(taskName: String, completion: Int, currentStatus: Int = 0)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns true, if the task of the progress bar is completed

Link copied to clipboard
fun step()

Increments progress bar by one step.

Link copied to clipboard
fun stepTo(n: Int)

Jumps to step n.