Feat: enhance cli.ts with updated typings and improved search interface

- Introduced `SearchResult` interface to standardize search result handling and improve code readability.
- Added TypeScript type annotations for command arguments and options in CLI methods to enforce stricter type safety.
- Updated `.version()` for CLI to align with best practices by removing redundant description parameter.
- Enhanced search logic with default parameter handling for limits and improved output formatting for results.
- Adjusted `tsconfig.json` to disable `noImplicitAny` while retaining strict typing practices.
- Streamlined CLI processes by parsing command-line arguments explicitly with `program.parse(process.argv)`.

Purpose: Improve developer productivity with better type safety, clearer interfaces, and refined CLI functionality.
This commit is contained in:
David Snelling 2025-07-18 12:00:50 -07:00
parent 3fe2a6e7f0
commit e9aaec89d8
2 changed files with 33 additions and 24 deletions

View file

@ -5,6 +5,7 @@
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"noImplicitAny": false,
"outDir": "dist",
"declaration": true,
"sourceMap": true,