feat(cli): Add interactive edit flow to CLI and improve UX

This commit is contained in:
2025-08-31 16:36:06 +00:00
parent 6e39b1db8f
commit a0e7408c1a
9 changed files with 198 additions and 56 deletions

View File

@@ -72,6 +72,7 @@ Add a new process configuration without starting it. This is the recommended way
- `--watch` - Enable file watching for auto-restart
- `--watch-paths <paths>` - Comma-separated paths to watch
- `--autorestart` - Auto-restart on crash (default: true)
- `-i, --interactive` - Enter interactive edit mode after adding
**Examples:**
```bash
@@ -86,6 +87,9 @@ tspm add "tsx watch src/index.ts" --name dev-server --watch --watch-paths "src,c
# Add without auto-restart
tspm add "node worker.js" --name one-time-job --autorestart false
# Add and immediately edit interactively
tspm add "node server.js" --name api -i
```
#### `tspm start <id|id:N|name:LABEL>`