Commit fe64356
feat(cli): add new commands and refactor into cli/ folder
New commands:
- `marionette --version` / `-v` / `version` — print installed version
- `marionette status` — check if the server is running
- `marionette logs` — tail the server log file (cross-platform)
- `marionette update` — check for newer GitHub releases
- `marionette uninstall` — full cleanup with --yes/-y flag to skip prompt
- `marionette --help` / `-h` — improved help with all commands listed
Refactor:
- Split monolithic cli.ts (750+ lines) into cli/ folder with one file per command
- Shared utilities (distDir, execAsync, isPortInUse, getVersion, shellRcPath) extracted to cli/utils.ts
- Unified 6 duplicate platform setup functions (LaunchAgent/systemd/WindowsTask) into 3 parameterized ones
- Parallelised independent operations with Promise.all (port kills, service unloads, MCP+hooks cleanup, auto-start pairs)
Bump version to 1.1.0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e5638f8 commit fe64356
16 files changed
Lines changed: 707 additions & 561 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments