Skip to content

What options exist for output to a logged environment like kubertenes/argo/docker #157

Description

@ezequiel-hemisphere

Loving the tool you're building here.

Our team write tools that execute as containers inside a Argo Workflows/Kubernetes cluster. In this environment output is saved as logs so without a TTY the progress bars don't look so great.

It would be super userful to still get the progress information, just in a log-oriented format. That is, at each refresh, new lines are appended to the Writer updating the state of every bar.

I am running WithManualRefresh, but I still see control characters in the log output and the lines are not complete (characters to the right are clobbered).

Locally:

GFK_TWLWSL_KAD_Weekly_All_Categories_20260615.csv.gz 10.16 MiB / 225.19 MiB [==>-----------------------------------------------------------------------] 1.32 MiB/s 7s 2m43s 
GFK_TWLWSL_KAD_Weekly_All_Categories_20260608.csv.gz 8.47 MiB / 225.11 MiB [==>------------------------------------------------------------------------] 1.10 MiB/s 7s 3m16s

In the log:

GFK_TWLWSL_KAD_Weekly_All_Categories_20260608.csv.gz 15.31 MiB / 225.11 MiB1.54…
GFK_TWLWSL_KAD_Weekly_All_Categories_20260615.csv.gz 14.22 MiB / 225.19 MiB1.44…
�[2A�[JGFK_TWLWSL_KAD_Weekly_All_Categories_20260608.csv.gz 16.00 MiB / 225.11 MiB822.…
GFK_TWLWSL_KAD_Weekly_All_Categories_20260615.csv.gz 16.00 MiB / 225.19 MiB823.…

Any guides on how to set up the tool to be line oriented (as can be done with https://github.com/schollz/progressbar for example though that project doesn't support concurrent bars)?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions