feat: Phase 3 - CLI sync commands

- Created comprehensive sync command suite:
  - 'opal sync init' - Configure sync with server (URL, API key)
  - 'opal sync status' - Show sync configuration and queue status
  - 'opal sync now' - Bidirectional sync with conflict resolution
  - 'opal sync up' - Push local changes to server
  - 'opal sync down' - Pull server changes to local
  - 'opal sync log' - View conflict resolution log
- Added interactive prompts for init (URL and API key)
- Automatic client ID generation (UUID)
- Display user-friendly sync results with emojis
- Support for viewing queued offline changes
- Integration with config system for persistent sync settings
This commit is contained in:
2026-01-05 16:19:00 +01:00
parent e6710eb19f
commit 944d628ca1
2 changed files with 364 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ const parsedArgsKey contextKey = "parsedArgs"
var commandNames = []string{
"add", "list", "done", "modify", "delete",
"start", "stop", "count", "projects", "tags",
"info", "edit", "server",
"info", "edit", "server", "sync",
}
var commandsWithModifiers = map[string]bool{