SteeltoeOSS / Tooling

Steeltoe developer tool collection
https://steeltoe.io/
Apache License 2.0
12 stars 7 forks source link

Default to displaying verbose command output #50

Closed ccheetham closed 5 years ago

ccheetham commented 5 years ago

The verbose output may be more useful than the current default of "quiet" output.

Several operations take relatively long periods of time, e.g. app deployment to Cloud Foundry and the pulling of large Docker images. Letting the use know that something is still happening rather than what looks like a hung command would useful.

cf-gitbot commented 5 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/163884726

The labels on this github issue will be updated when the story is started.

ccheetham commented 5 years ago

This would be a bad default for underlying operations that redraw terminals. E.g., when pushing a Cloud Foundry app, the cf command output is redrawn to show an continually updated percentage. When viewed in a terminal that supports cursor repositioning, the updated percentage shows on a single line that is redrawn. However, when output from an underlying is displayed by st, no such terminal support exists, so the redrawn line is simply an additional line of output. For long running commands, this can produce a lot of noisy output.

An example of noisy output:

 1.59 MiB / 2.86 MiB [=============================================================================================================================>---------------------------------------------------------------------------------------------------]  55.77%
 1.62 MiB / 2.86 MiB [===============================================================================================================================>-------------------------------------------------------------------------------------------------]  56.86%
 1.66 MiB / 2.86 MiB [==================================================================================================================================>----------------------------------------------------------------------------------------------]  57.95%
 1.69 MiB / 2.86 MiB [====================================================================================================================================>--------------------------------------------------------------------------------------------]  59.05%
 1.72 MiB / 2.86 MiB [=======================================================================================================================================>-----------------------------------------------------------------------------------------]  60.14%
 1.75 MiB / 2.86 MiB [=========================================================================================================================================>---------------------------------------------------------------------------------------]  61.23%
 1.81 MiB / 2.86 MiB [==============================================================================================================================================>----------------------------------------------------------------------------------]  63.42%