Skip to content

Commit

Permalink
actually implement with_fill_finished
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Jun 4, 2024
1 parent b64663e commit 83f2238
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/glitzer.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import glitzer/progress
pub fn sleep(ms: Int) -> a

pub fn main() {
let bar = progress.default_bar()
let bar =
progress.default_bar()
|> progress.with_fill_finished(progress.char_from_string("-"))

do_something(bar, 0)
}
Expand Down
2 changes: 1 addition & 1 deletion src/glitzer/progress.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub fn with_fill_finished(
bar bar: ProgressStyle,
fill char: Char,
) -> ProgressStyle {
todo
ProgressStyle(..bar, fill_finished: option.Some(char))
}

/// Add length to a progress bar.
Expand Down

0 comments on commit 83f2238

Please sign in to comment.