Styling progress bars

[?]
Nov 27, 2020, 7:15 PM
K6GWUOD55G377RVEEMMRPZ4EUAHCM2BGXNRJTE5UZJFFMJGFCEZQC

Dependencies

  • [2] 367UBQ6K Forwarding SSH stderr, and progress bar for push
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [4] I52XSRUH Massive cleanup, and simplification
  • [5] 76PCXGML Pushing to, and pulling from the local repository
  • [6] UDHP4ZVB Fixing SSH asynchronicity issues
  • [7] FBXYP7QM Forgot to add remote::http
  • [8] Q45QHPO4 Feedback on network stuff

Change contents

  • replacement in pijul/src/remote/ssh.rs at line 737
    [3.86][3.86:135]()
    progress.println("Downloading changes");
    [3.86]
    [3.9753]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template(" Downloading changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/remote/ssh.rs at line 750
    [3.250]
    [3.250]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template("✓ Downloading changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/remote/ssh.rs at line 794
    [3.51338]
    [3.521]
    progress
    .set_style(indicatif::ProgressStyle::default_spinner().template("✓ Cloning channel"));
  • edit in pijul/src/remote/mod.rs at line 161
    [3.1508]
    [3.56851]
    let progress = indicatif::ProgressBar::new_spinner();
    progress.set_style(
    indicatif::ProgressStyle::default_spinner()
    .template("{spinner} Updating remote changelist"),
    );
    progress.enable_steady_tick(100);
  • edit in pijul/src/remote/mod.rs at line 187
    [3.57497]
    [3.1637]
    progress.set_style(
    indicatif::ProgressStyle::default_spinner().template("✓ Updating remote changelist"),
    );
    progress.finish();
  • replacement in pijul/src/remote/mod.rs at line 456
    [3.686][3.686:729]()
    p.println("Applying changes");
    [3.686]
    [3.729]
    p.set_style(
    indicatif::ProgressStyle::default_bar()
    .template(" Applying changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/remote/mod.rs at line 489
    [3.1133]
    [3.1133]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template("✓ Applying changes {wide_bar} {pos}/{len}"),
    );
  • replacement in pijul/src/remote/http.rs at line 24
    [3.1316][3.1316:1365]()
    progress.println("Downloading changes");
    [3.1316]
    [3.432]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template(" Downloading changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/remote/http.rs at line 57
    [3.1470]
    [3.1470]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template("✓ Downloading changes {wide_bar} {pos}/{len}"),
    );
  • replacement in pijul/src/remote/http.rs at line 73
    [2.1074][2.1074:1121]()
    progress.println("Uploading changes");
    [2.1074]
    [2.1121]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template(" Uploading changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/remote/http.rs at line 98
    [3.1511]
    [2.1909]
    progress.set_style(
    indicatif::ProgressStyle::default_bar()
    .template("✓ Uploading changes {wide_bar} {pos}/{len}"),
    );
  • edit in pijul/src/commands/pushpull.rs at line 157
    [3.115743][3.1512:1778]()
    let progress = indicatif::ProgressBar::new_spinner();
    progress.set_style(
    indicatif::ProgressStyle::default_spinner()
    .template("{spinner} Updating remote changelist"),
    );
    progress.enable_steady_tick(100);
  • edit in pijul/src/commands/pushpull.rs at line 158
    [3.115823][3.1779:1806]()
    progress.finish();
  • edit in pijul/src/commands/pushpull.rs at line 299
    [3.118637][3.1807:2097]()
    let progress = indicatif::ProgressBar::new_spinner();
    progress.set_style(
    indicatif::ProgressStyle::default_spinner()
    .template("{spinner} Updating remote changelist"),
    );
    progress.enable_steady_tick(100);
  • edit in pijul/src/commands/pushpull.rs at line 300
    [3.118721][3.2098:2129]()
    progress.finish();
  • edit in pijul/src/commands/pushpull.rs at line 401
    [3.120778]
    [3.120778]
    let progress = indicatif::ProgressBar::new_spinner();
    progress.set_style(
    indicatif::ProgressStyle::default_spinner().template("{spinner} Outputting repository"),
    );
    progress.enable_steady_tick(100);
  • edit in pijul/src/commands/pushpull.rs at line 413
    [3.120955]
    [3.120955]
    progress.set_style(
    indicatif::ProgressStyle::default_spinner().template("✓ Outputting repository"),
    );
    progress.finish();
  • edit in pijul/src/commands/clone.rs at line 101
    [3.185801]
    [3.2563]
    progress.set_style(
    indicatif::ProgressStyle::default_spinner().template("✓ Outputting repository"),
    );