Skip to content

Show real-time progress bar during eko save and eko restore #107

Description

@kavix

🎯 Goal

For large projects with thousands of files, eko save and eko restore give no visual feedback. Add an optional real-time progress bar (file count / total) printed to stderr so users can see the operation progressing.

💡 Expected Behavior

$ eko save
Saving snapshot... [████████████████░░░░] 1234/1500 files
Snapshot saved: 8c9d1a2f

🛠️ Implementation Steps

  1. Add a --progress flag (default true when stdout is a TTY) to cmd/save.go and cmd/restore.go.
  2. Use an atomic counter in internal/util/fs.go worker pool to track copied file count.
  3. Print a carriage-return-based progress line to stderr using ANSI escape codes (no external dependency needed).
  4. Add unit tests verifying the counter increments correctly.

📖 See full details in GOOD_FIRST_ISSUES.md — Issue #13
🌟 Great for first-time contributors! Read CONTRIBUTING.md to get started.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCLI command tasksgood first issueGood for newcomershelp wantedExtra attention is neededuxUser experience improvements

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions