Repository navigation
Commit 2777e39
authored
feat(owpenbot): refactor CLI to non-interactive with JSON output (anomalyco#307)
- Remove @clack/prompts dependency and all interactive wizard code
- Add global --json flag for machine-parseable output
- Add 'config get [key]' and 'config set <key> <value>' subcommands
- Add 'health' command (exit 0 if healthy, 1 if not)
- Add --json support to 'status', 'whatsapp status', 'telegram status'
- Add 'whatsapp qr [--format ascii|base64]' for non-interactive QR
- Add 'pairing list --json' with structured output
- Keep 'start', 'pairing approve/deny', 'whatsapp login/logout' working
- Maintain backwards compatibility with legacy command aliases
- All commands work without TTY1 parent b3aef47 commit 2777e39
3 files changed
Lines changed: 482 additions & 458 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
0 commit comments