import { ProgressBar } from "https://dotland.deno.dev/x/dax@0.39.2/src/console/progress/mod.ts";
A progress bar instance created via $.progress(...)
.
Constructors
new
ProgressBar(onLog: (...data: any[]) => void, opts: ProgressOptions)Methods
message(message: string | undefined): this
Sets the message the progress bar will display after the prefix in white.
prefix(prefix: string | undefined): this
Sets the prefix message/word, which will be displayed in green.
with<TResult>(action: () => TResult): TResult
Does the provided action and will call .finish()
when this is the last .with(...)
action that runs.
with<TResult>(action: () => Promise<TResult>): Promise<TResult>