Skip to content

feat: allow users to check sync state before running sync#37

Merged
yosuang merged 1 commit intodevfrom
feat-sync-status
Mar 24, 2026
Merged

feat: allow users to check sync state before running sync#37
yosuang merged 1 commit intodevfrom
feat-sync-status

Conversation

@yosuang
Copy link
Copy Markdown
Owner

@yosuang yosuang commented Mar 24, 2026

Summary

  • Add devctl sync --status flag that shows whether local config is in sync with remote, eliminating guesswork before running sync
  • Displays last sync time, local file changes (added/modified/deleted), and number of remote commits behind
  • Persists last sync timestamp in .sync-state.json (gitignored) and handles edge cases: not initialized, network failure, flag conflicts

Test plan

  • 11 new tests covering all status states: up to date, out of date (local/remote), conflict, not initialized, never synced, excluded files, deleted files, state persistence, state not tracked by git
  • All 23 sync package tests pass
  • Lint passes with 0 issues

Add `devctl sync --status` so users can see whether their local config
is in sync with the remote without having to run a full sync or manually
inspect git state. Shows local/remote changes, last sync time, and
guides next action.
@yosuang yosuang merged commit 9b37d89 into dev Mar 24, 2026
1 check passed
@yosuang yosuang deleted the feat-sync-status branch March 24, 2026 15:53
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