Skip to content

refactor: improve code#56

Merged
nainglinnkhant merged 5 commits intomainfrom
e-1069-improve-cli-code
Feb 19, 2026
Merged

refactor: improve code#56
nainglinnkhant merged 5 commits intomainfrom
e-1069-improve-cli-code

Conversation

@nainglinnkhant
Copy link
Collaborator

@nainglinnkhant nainglinnkhant commented Feb 17, 2026

Note

Medium Risk
Touches core CLI execution paths (logging streams, option parsing, upload/sync concurrency), which could affect user-visible behavior and throughput; changes are localized and covered by updated tests but warrant manual smoke-testing of piping and large uploads.

Overview
The CLI now keeps stdout clean for piped output by routing @clack/prompts logging/spinners through a new utils/logger (stderr), and the update-checker is made non-blocking and prints its banner to stderr after command execution.

Command option handling is simplified by removing the custom mergeCommandOptions helper in favor of Commander’s optsWithGlobals(), and completion install/uninstall error paths now exit non-zero.

Upload/sync hot paths are modernized: file reads/stats are moved to async fs/promises, uploads switch from batch-by-batch to sliding-window concurrency via p-limit, manifest uploads can optionally show per-file strategy, and --unique dedup logic is extracted into shared checkExistingFiles. Output formatting is tweaked so formatBytes(undefined/NaN) returns "-", and saveConfig writes atomically; dotenv is removed from CLI dependencies.

Written by Cursor Bugbot for commit fcaf3f5. This will update automatically on new commits. Configure here.

@nainglinnkhant nainglinnkhant merged commit a7ee7da into main Feb 19, 2026
4 checks passed
@nainglinnkhant nainglinnkhant deleted the e-1069-improve-cli-code branch February 19, 2026 09:42
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.

1 participant