mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 13:12:50 +00:00
fix(portal-clis): reject invalid --format flags with BAD_ARG in linkedin-search and freehire-search (#555) (#556)
This commit is contained in:
1 parent
a644df0625
commit
c922b0c757
5 files changed
+75
-8
No files matched your search
@@ -29,6 +29,13 @@ per-file diff commands.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **`linkedin-search` and `freehire-search` reject invalid `--format` flags with `BAD_ARG`** (#555,
|
||||
`.agents/skills/linkedin-search/cli/src/cli.ts`, `.agents/skills/freehire-search/cli/src/cli.ts`) -
|
||||
unrecognized `--format` flags previously fell back silently to `"json"` with exit code 0, masking
|
||||
formatting typos and violating the CLI contract. Both CLIs now validate format arguments strictly
|
||||
(`json|table|plain` for search, `json|plain` for detail) and exit 1 with `{ error, code: "BAD_ARG" }`
|
||||
on invalid options.
|
||||
|
||||
- **`jobdanmark-search detail` no longer keeps a malformed closing tag as text on the
|
||||
rendered-HTML branch** (#525, `detail.ts`, `tests/detail-parsing.test.ts`) - a live page wrote
|
||||
its Jobtype item as `Fuldtid </ li >`, and because `node-html-parser` does not recognise a
|
||||
|
||||
Reference in new issue
Block a user