cli/pkg
Snider e4b47f9d29 refactor(update): use watcher pattern for auto-restart
Replace the direct exec-based restart with a spawned watcher process:
- Add hidden --watch-pid flag for internal use
- spawnWatcher() spawns background process before update
- watchAndRestart() polls for parent death, then restarts binary
- Uses signal 0 on Unix to check if process is alive
- Windows fallback spawns new process and exits

This approach is safer because:
- Parent exits cleanly before restart (no file locking issues)
- Watcher is detached from parent process group
- Works reliably across platforms

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 12:14:51 +00:00
..
agentic feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
ai feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
build feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cache refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
ci feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cli feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
container feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
dev feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
devops fix(test): use manual cleanup for TestDevOps_Boot_Good_Success 2026-02-01 11:55:10 +00:00
docs feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
doctor refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
errors feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
framework feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
git feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
gitcmd feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
go feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
i18n feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
log feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
mcp feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
monitor feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
php feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
pkgcmd feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
process feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
qa feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
release feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
repos feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
sdk feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
security feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
setup feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
test feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
updater refactor(update): use watcher pattern for auto-restart 2026-02-01 12:14:51 +00:00
vm feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
workspace feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00