Skip to content

Commit

Permalink
actually close details
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Jun 5, 2024
1 parent b3f2baa commit 5bac8b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/glitzer/progress.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ pub opaque type Char {
/// let char = progress.char_from_string("A")
/// }
/// ```
///
/// </details>
pub fn char_from_string(from in: String) -> Char {
let len = string.length(in)

Expand Down Expand Up @@ -174,6 +176,8 @@ pub fn fancy_thick_bar() -> ProgressStyle {
/// |> progress.with_fill(progress.char_from_string("+"))
/// }
/// ```
///
/// </details>
pub fn new_bar() -> ProgressStyle {
ProgressStyle(
left: "",
Expand Down Expand Up @@ -281,6 +285,8 @@ pub fn finish(bar bar: ProgressStyle) -> ProgressStyle {
/// }
/// }
/// ```
///
/// </details>
pub fn print_bar(bar bar: ProgressStyle) {
let bar =
ProgressStyle(
Expand Down Expand Up @@ -386,6 +392,8 @@ fn get_finished_fill(fill: StringBuilder, bar: ProgressStyle) -> StringBuilder {
/// })
/// }
/// ```
///
/// </details>
pub fn map_iterator(
over i: Iterator(a),
bar bar: ProgressStyle,
Expand Down

0 comments on commit 5bac8b0

Please sign in to comment.