Skip to content

Progress spinner animation on non-interactive shells cause a lot of spam #172

@csvn

Description

@csvn

When running deployctl deploy --project my-project main.ts where previously printed lines cannot be replaced, deployctl will cause a lot of spam. As an example, when running this command on Gitlab CI:

⠹ Uploading 1555 assets... (99.8%)
⠸ Uploading 1555 assets... (99.8%)
⠼ Uploading 1555 assets... (99.8%)
⠴ Uploading 1555 assets... (99.9%)
⠦ Uploading 1555 assets... (99.9%)
⠧ Uploading 1555 assets... (99.9%)
⠇ Uploading 1555 assets... (99.9%)
⠏ Uploading 1555 assets... (99.9%)
⠋ Uploading 1555 assets... (99.9%)
⠙ Uploading 1555 assets... (99.9%)
⠹ Uploading 1555 assets... (99.9%)
⠸ Uploading 1555 assets... (99.9%)
⠼ Uploading 1555 assets... (99.9%)
⠴ Uploading 1555 assets... (100.0%)

In the job I checked, there was 1400+ lines of progress for upload. And most of them seemed to have unchanged percentage, where only the symbol at the beginning was changing.

It would be great if deployctl could auto-detect when the shell/terminal/stdout is non-interactive, and automatically change to either remove remove progress entirely, only log when % changes, or log in an interval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions