chiark / gitweb /
cli bundle progress: clear before thinking about bundles
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 May 2022 00:09:32 +0000 (01:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 16 May 2022 02:09:35 +0000 (03:09 +0100)
Otherwise the output is a bit messed up.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cli/forgame.rs
support/imports.rs

index 7153417fe638857177534c1f54bc624a92477306..e8116459af55f0d126cdba678733b48b8a3aa098 100644 (file)
@@ -103,6 +103,7 @@ mod reset_game {
         MR::Bundles { bundles } => bundles,
         x => throw!(anyhow!("unexpected response to ListBundles: {:?}",x)),
       };
+      progress.clear();
 
       let bundles_only = args.bundles_only;
       match Itertools::zip_longest(
index 2202a7abfcda1582f1a968d92187c4913ba57016..df39193b750a2025ce0f192e8306068b20cb03f5 100644 (file)
@@ -86,7 +86,7 @@ pub use crate::packetframe::{PacketFrameReadError, PacketFrameWriteError};
 pub use crate::progress::{self, ProgressInfo, OriginatorExt as _};
 pub use crate::slotmap_slot_idx::*;
 pub use crate::support::*;
-pub use crate::termprogress;
+pub use crate::termprogress::{self, Reporter as _};
 pub use crate::timedfd::*;
 pub use crate::toml_de;
 pub use crate::tz::*;