Skip to content

feat: add tesseract command#12

Merged
br-monteiro merged 6 commits into
mainfrom
feat/add-tesseract-command
Mar 24, 2026
Merged

feat: add tesseract command#12
br-monteiro merged 6 commits into
mainfrom
feat/add-tesseract-command

Conversation

@br-monteiro

Copy link
Copy Markdown
Member

This pull request introduces a new tesseract command to the CLI tool, enabling users to fetch and display product variation data from the Tesseract API for different business units. It includes full implementation, documentation, and comprehensive unit tests. The command supports filtering by blocked status, quiet output mode, and configuration via both config file and environment variables.

The most important changes are:

New Command Implementation:

  • Added the tesseract command with arguments for business unit and model, supporting options for filtering by blocked status and quiet output. The command fetches data from the Tesseract API and displays it in a table format. (commands/tesseract/tesseract_command.py)
  • Implemented the TesseractAPI class to handle API requests, business unit URL selection, and configuration validation. (commands/tesseract/tesseract_api.py)
  • Registered the new command in the package init. (commands/tesseract/__init__.py)

Documentation:

  • Added a detailed README for the tesseract command, covering configuration, usage, options, and output format. (commands/tesseract/README.md)
  • Updated the main README.md to document the new tesseract command in the command table.

Testing:

  • Added comprehensive unit tests for the TesseractAPI class, covering configuration validation, URL selection, API request behavior, and error handling. (tests/commands/tesseract/test_tesseract_api.py)

@br-monteiro br-monteiro self-assigned this Mar 24, 2026
@br-monteiro br-monteiro merged commit 406e3e3 into main Mar 24, 2026
1 check passed
@br-monteiro br-monteiro deleted the feat/add-tesseract-command branch March 24, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant