Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add multi module for same line indicators #34

Merged
merged 16 commits into from
Dec 2, 2024
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
version: 1.2.4
title: Test multi.insert_spinner_inline and multi.insert_progress_inline
file: ./test/glitzer_test.gleam
test_name: multi_insert_spinner_progress_test
---
SameLine(
100,
None,
LineState([
#(
"s1",
Spinner(SpinnerStyle(
100,
"",
State(
Frames(#("|", "/", "-", "\")),
//fn(a) { ... },
"",
"",
0,
False,
None,
),
)),
),
#(
"p1",
Progress(ProgressStyle(
"[",
"]",
Char(" "),
Char("#"),
None,
None,
None,
False,
100,
State(0, False),
)),
),
]),
)
7 changes: 7 additions & 0 deletions birdie_snapshots/test_multi_new_same_line.accepted
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 1.2.4
title: Test multi.new_same_line
file: ./test/glitzer_test.gleam
test_name: multi_new_same_line_test
---
SameLine(100, None, LineState([]))
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_default_bar.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.default_bar
file: ./test/glitzer_test.gleam
test_name: progress_default_bar_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
100,
State(0, False),
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.fancy_slim_arrow_bar
file: ./test/glitzer_test.gleam
test_name: progress_fancy_slim_arrow_bar_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
Some(Char("—")),
Some(Char("→")),
Some(Char("→")),
True,
100,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_fancy_slim_bar.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.fancy_slim_bar
file: ./test/glitzer_test.gleam
test_name: progress_fancy_slim_bar_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
Some(Char("—")),
None,
None,
True,
100,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_fancy_thick_bar.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.fancy_thick_bar
file: ./test/glitzer_test.gleam
test_name: progress_fancy_thick_bar_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
Some(Char("█")),
None,
None,
True,
100,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_new_bar.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.new_bar
file: ./test/glitzer_test.gleam
test_name: progress_new_bar_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
0,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_slim_bar.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.slim_bar
file: ./test/glitzer_test.gleam
test_name: progress_slim_bar_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
100,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_tick.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.tick
file: ./test/glitzer_test.gleam
test_name: progress_tick_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
0,
State(1, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_tick_bar.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.tick_bar
file: ./test/glitzer_test.gleam
test_name: progress_thick_bar_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
100,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_tick_by.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.tick_by
file: ./test/glitzer_test.gleam
test_name: progress_tick_by_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
0,
State(10, True),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_with_empty.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_empty
file: ./test/glitzer_test.gleam
test_name: progress_with_empty_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
0,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_with_fill.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_fill
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
0,
State(0, False),
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_fill_finished
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_finished_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
Some(Char("#")),
None,
None,
True,
0,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_with_fill_head.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_fill_head
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_head_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
Some(Char("#")),
None,
True,
0,
State(0, False),
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_fill_head_finished
file: ./test/glitzer_test.gleam
test_name: progress_with_fill_head_finished_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
Some(Char("#")),
None,
None,
True,
0,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_with_left_text.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_left_text
file: ./test/glitzer_test.gleam
test_name: progress_with_left_text_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
0,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_with_length.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_length
file: ./test/glitzer_test.gleam
test_name: progress_with_length_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
100,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progress_with_right_text.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progress.with_right_text
file: ./test/glitzer_test.gleam
test_name: progress_with_right_text_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
0,
State(0, False),
)
3 changes: 2 additions & 1 deletion birdie_snapshots/test_progresss_finish.accepted
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 1.1.6
version: 1.2.4
title: Test progresss.finish
file: ./test/glitzer_test.gleam
test_name: progress_finish_test
Expand All @@ -12,6 +12,7 @@ ProgressStyle(
None,
None,
None,
True,
100,
State(101, True),
)
Loading