diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-19 11:19:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 11:19:33 -0500 |
commit | 2afac5bf78536060a53012c4f938b0390e8827de (patch) | |
tree | 2c4cd772d5b35543a8d31de47428de7ee3134042 /cli/util/mod.rs | |
parent | 383d40a33bee842a7462fb157f5faca263598d87 (diff) |
refactor(progress bars): global control for drawing (#17091)
This PR adds the concept of a global `DrawThread`, which can receive
multiple renderers to draw information on the screen (note: the
underlying thread is released back to tokio when it's not rendering). It
also separates the concept of progress bars from the existing "draw
thread". This makes it trivial for us to do stuff like show permission
prompts and progress bars at the same time in the future.
The reason this is global is because the process' tty stderr is also a
global concept.
Diffstat (limited to 'cli/util/mod.rs')
-rw-r--r-- | cli/util/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/util/mod.rs b/cli/util/mod.rs index ab311ee86..a7a72f3b4 100644 --- a/cli/util/mod.rs +++ b/cli/util/mod.rs @@ -5,6 +5,7 @@ pub mod checksum; pub mod console; pub mod diff; pub mod display; +pub mod draw_thread; pub mod file_watcher; pub mod fs; pub mod logger; |