Skip to content

Change the progress bars for the CLI #323

Open
@kevinlacaille

Description

@kevinlacaille

When downloading an order with the CLI, a progress bar appears and it fills out the length of the command line window.

For example, when downloading an order in v2, this is what appears:

❯ planet orders download -o 4280c148-98d7-47d1-84ad-4c7b7dafad21
order 4280c148-98d7-47d1-84ad-4c7b7dafad21 state: success
/path/to/download/order_psscene4band_analytic_sr_udm2.zip: 100%|██████████████████████| 0.95k/0.95k [00:00<00:00, 5.39MB/s]
/path/to/download/manifest.json: 100%|████████████████████████████████████████████████████████████████████████| 282/282 [00:00<00:00, 801kB/s]
/path/to/download/order_psscene4band_analytic_sr_udm2.zip
/path/to/download/manifest.json

This leads to two issues:

  1. The progress bars are not guaranteed to be the same length, which looks somewhat strange.
  2. In some cases, smaller files (i.e., manifest.json) may have longer progress bars compared to larger files (i.e., order_psscene4band_analytic_sr_udm2.zip), which looks misleading.

Proposal: Have the progress bars be on the line above or below the filename and have them all be the same length.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions