fix(cli): keep total-failure JSON errors parseable

Remove obsolete unsupported-import diagnostics and defer comparison warnings until partial success. Preserve per-symbol diagnostics and quiet behavior when results remain available.
This commit is contained in:
hermes 2026-10-03 16:21:35 +00:00
commit b4dcfceef6
3 changed files with 20 additions and 30 deletions

View file

@ -137,6 +137,7 @@ CLI flags > environment variables > config file > defaults
- Table mode: human-readable error on stderr
- JSON mode: `{"error": true, "code": "...", "message": "..."}`
- Exit code 0 on success, non-zero on failure
- A totally failed `stocks compare` emits one structured error in JSON mode; per-symbol warnings are retained for partial success, not printed ahead of a total-failure error.
## CLI Output and Offline Cache
- `version`, `cache info`, `cache clear`, and `ownership resolve map|merge` emit