Skip to content

Commit 3a4faec

Browse files
committed
Upgrade to latest iteration of prodash
1 parent 6901a09 commit 3a4faec

File tree

17 files changed

+52
-396
lines changed

17 files changed

+52
-396
lines changed

Diff for: Cargo.toml

+13-13
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@ doctest = false
2525
[features]
2626
default = ["max"]
2727

28-
max = ["fast", "pretty-cli", "prodash/tui-renderer-crossterm", "prodash-line-renderer-crossterm"]
29-
max-termion = ["fast", "pretty-cli", "prodash/tui-renderer-termion", "prodash-line-renderer-termion"]
28+
max = ["fast", "pretty-cli", "prodash/render-tui-crossterm", "prodash-render-line-crossterm"]
29+
max-termion = ["fast", "pretty-cli", "prodash/render-tui-termion", "prodash-render-line-termion"]
3030

31-
lean = ["fast", "lean-cli", "prodash-line-renderer-crossterm", "git-features/interruptible"]
32-
lean-termion = ["fast", "lean-cli", "prodash-line-renderer-termion", "git-features/interruptible"]
31+
lean = ["fast", "lean-cli", "prodash-render-line-crossterm", "git-features/interruptible"]
32+
lean-termion = ["fast", "lean-cli", "prodash-render-line-termion", "git-features/interruptible"]
3333

3434
light = ["fast", "lean-cli", "git-features/interruptible"]
3535
small = ["lean-cli"]
3636

3737
fast = ["git-features/parallel", "git-features/fast-sha1"]
3838
pretty-cli = ["clap",
39-
"git-features/progress-prodash",
4039
"git-features/interruptible",
4140
"gitoxide-core/serde1",
42-
"prodash/log-renderer",
43-
"prodash-tui-renderer",
44-
"prodash-line-renderer",
41+
"prodash/progress-tree",
42+
"prodash/progress-tree-log",
4543
"prodash/localtime",
44+
"prodash-render-tui",
45+
"prodash-render-line",
4646
"env_logger",
4747
"futures-lite"]
48-
lean-cli = ["argh", "git-features/progress-log", "env_logger"]
48+
lean-cli = ["argh", "prodash/progress-log", "prodash/progress-tree", "env_logger"]
4949

50-
prodash-line-renderer-crossterm = ["prodash-line-renderer", "prodash/line-renderer-crossterm", "git-features/progress-prodash", "atty", "crosstermion"]
51-
prodash-line-renderer-termion = ["prodash-line-renderer", "prodash/line-renderer-termion", "git-features/progress-prodash", "atty", "crosstermion"]
50+
prodash-render-line-crossterm = ["prodash-render-line", "prodash/render-line-crossterm", "atty", "crosstermion"]
51+
prodash-render-line-termion = ["prodash-render-line", "prodash/render-line-termion", "atty", "crosstermion"]
5252

5353
# internal
54-
prodash-tui-renderer = ["prodash/tui-renderer"]
55-
prodash-line-renderer = ["prodash/line-renderer"]
54+
prodash-render-tui = ["prodash/render-tui"]
55+
prodash-render-line = ["prodash/render-line"]
5656

5757

5858
[dependencies]

Diff for: README.md

+5-11
Original file line numberDiff line numberDiff line change
@@ -253,19 +253,19 @@ The top-level command-line interface.
253253
* Use `argh` to produce a usable binary with decent documentation that is smallest in size, usually 300kb less than `pretty-cli`.
254254
* If `pretty-cli` is enabled as well, `lean-cli` will take precedence, and you pay for building unnecessary dependencies.
255255
* provides a line renderer for log-like progress
256-
* **prodash-line-renderer-crossterm** or **prodash-line-renderer-termion** _(mutually exclusive)_
256+
* **prodash-render-line-crossterm** or **prodash-render-line-termion** _(mutually exclusive)_
257257
* The `--verbose` flag will be powered by an interactive progress mechanism that doubles as log as well as interactive progress
258258
that appears after a short duration.
259259

260260
There are **convenience features**, which combine common choices of the above into one name
261261

262-
* **max** = *pretty-cli* + *fast* + *prodash-tui-renderer-crossterm*
262+
* **max** = *pretty-cli* + *fast* + *prodash-render-tui-crossterm*
263263
* _default_, for unix and windows
264-
* **max-termion** = *pretty-cli* + *fast* + *prodash-tui-renderer-termion*
264+
* **max-termion** = *pretty-cli* + *fast* + *prodash-render-tui-termion*
265265
* for unix only, faster compile times, a little smaller
266-
* **lean** = *lean-cli* + *fast* + *prodash-line-renderer-crossterm*
266+
* **lean** = *lean-cli* + *fast* + *prodash-render-line-crossterm*
267267
* for unix and windows, significantly smaller than _max_, but without `--progress` terminal user interface.
268-
* **lean-termion** = *lean-cli* + *fast* + *prodash-line-renderer-termion*
268+
* **lean-termion** = *lean-cli* + *fast* + *prodash-render-line-termion*
269269
* for unix only, faster compile times, a little smaller
270270
* **light** = *lean-cli* + *fast*
271271
* crossplatform by nature as this comes with simplified log based progress
@@ -285,12 +285,6 @@ All feature toggles are additive.
285285
* **fast-sha1**
286286
* a multi-crate implementation that can use hardware acceleration, thus bearing the potential for up to 2Gb/s throughput on
287287
CPUs that support it, like AMD Ryzen or Intel Core i3.
288-
* **progress-log**
289-
* Implement the `Progress` trait using the `log` crate. Throttle progress output to one every 0.5 seconds unless messages
290-
are sent manually.
291-
* **progress-prodash**
292-
* Implement the `Progress` trait for the tree data structures provided by `prodash`, which enables using a terminal user
293-
interface for progress.
294288
* **interruptible**
295289
* Listen to interrupts and termination requests and provide long-running operations tooling to allow aborting the input stream.
296290
* If unset, these utilities will be a no-op which may lead to leaking temporary files when interrupted.

Diff for: git-features/Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ test = false
1414
[features]
1515
parallel = ["crossbeam-utils", "crossbeam-channel", "num_cpus"]
1616
fast-sha1 = ["fastsha1"]
17-
progress-log = ["log"]
18-
progress-prodash = ["prodash"]
1917
interruptible = ["ctrlc", "once_cell"]
2018

2119
[[test]]
@@ -46,7 +44,7 @@ fastsha1 = { package = "sha-1", version = "0.9.1", optional = true }
4644

4745
# progress
4846
log = { version = "0.4.8", optional = true }
49-
prodash = { version = "8.0.0", optional = true, default-features = false }
47+
prodash = { version = "8.0.0", default-features = false }
5048

5149
# interruptible
5250
ctrlc = { version = "3.1.4", optional = true, default-features = false, features = ['termination'] }

Diff for: git-features/src/progress/log.rs

-88
This file was deleted.

0 commit comments

Comments
 (0)