feat: add tesseract command#12
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
tesseractcommand 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:
tesseractcommand 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)TesseractAPIclass to handle API requests, business unit URL selection, and configuration validation. (commands/tesseract/tesseract_api.py)commands/tesseract/__init__.py)Documentation:
tesseractcommand, covering configuration, usage, options, and output format. (commands/tesseract/README.md)README.mdto document the newtesseractcommand in the command table.Testing:
TesseractAPIclass, covering configuration validation, URL selection, API request behavior, and error handling. (tests/commands/tesseract/test_tesseract_api.py)