Skip to content

Conversation

@ebrensi
Copy link

@ebrensi ebrensi commented Dec 21, 2025

Hello! the --show-progress option for s5cmd cp does not work well with logged output. I could not find a way to make it work using wrapper scripts. So I enlisted the help of an AI to make this pull request. Feel free to make modifications to it, as this is just the basic idea. It has been tested and it works.

Adds a new --log-progress (-lp) flag to the cp command that outputs progress information in a log-friendly format suitable for pipes, log files, and non-TTY environments.

Key features:

  • Outputs to stderr with newlines (not carriage returns)
  • No ANSI color codes or terminal buffer manipulation
  • Updates every 2 seconds to avoid log spam
  • Shows: percentage, bytes transferred/total, speed, ETA, and file count
  • Format: "X% - Y/Z @ speed - ETA (N/M files)"

This addresses the need for progress reporting in CI/CD pipelines, log files, and other non-interactive environments where the existing --show-progress flag doesn't work.

Fixes #768
Fixes #753

Adds a new --log-progress (-lp) flag to the cp command that outputs
progress information in a log-friendly format suitable for pipes,
log files, and non-TTY environments.

Key features:
- Outputs to stderr with newlines (not carriage returns)
- No ANSI color codes or terminal buffer manipulation
- Updates every 2 seconds to avoid log spam
- Shows: percentage, bytes transferred/total, speed, ETA, and file count
- Format: "Progress: X% - Y/Z @ speed - ETA (N/M files)"

This addresses the need for progress reporting in CI/CD pipelines,
log files, and other non-interactive environments where the existing
--show-progress flag doesn't work.

Fixes peak#768
Fixes peak#753
@ebrensi ebrensi requested a review from a team as a code owner December 21, 2025 04:37
@ebrensi ebrensi requested review from denizsurmeli and igungor and removed request for a team December 21, 2025 04:37
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

Successfully merging this pull request may close these issues.

[Feature Request] --sp --show-progress - but for logs / pipes Option to show progress in non-interactive terminals?

1 participant