Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to show progress in non-interactive terminals? #753

Open
shapirus opened this issue Sep 2, 2024 · 0 comments
Open

Option to show progress in non-interactive terminals? #753

shapirus opened this issue Sep 2, 2024 · 0 comments

Comments

@shapirus
Copy link

shapirus commented Sep 2, 2024

It'd be nice if the cp command could show the numbers for completed objects and total objects.

I know about the --show-progress flag, but it:

a) won't work with non-interactive/dumb terminals such as plain text log files or github actions job output logs;
b) doesn't pre-calculate the total number of files, and the total number of objects it prints is increasing along with the number of uploaded objects as it progresses.

Current output:

...
cp x/y/z/filename.ext s3://bucket/x/y/z/filename.ext
cp x/y/z/filename1.ext s3://bucket/x/y/z/filename1.ext
...

Desired output, for example, just like in s3cmd:

...
cp x/y/z/filename.ext s3://bucket/x/y/z/filename.ext [25 of 2028]
cp x/y/z/filename1.ext s3://bucket/x/y/z/filename1.ext [26 of 2028]
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant