feat: Add console table display with Laravel Prompts #3
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 several updates to enhance functionality, improve result visualization, and align dependencies. The most significant changes include adding a new
consoleTablemethod for formatted result display, integrating Laravel Prompts, and updating documentation with examples of the new features.Feature Enhancements:
consoleTablemethod to theHunterResultclass for displaying results in a structured table format. This method leverages Laravel Prompts for better visualization and includes metrics like total records, success rate, execution time, and memory usage. It also provides warnings and information about failed or skipped records. (src/HunterResult.php, src/HunterResult.phpR128-R183)Dependency Updates:
composer.jsonto includelaravel/promptsas a new dependency (^0.3.5) to support the formatted console table feature. (composer.json, composer.jsonL20-R22)Documentation Improvements:
docs/examples.mdwith detailed examples demonstrating the newconsoleTablemethod, including integration with Laravel commands and comparison of dry run vs actual execution. (docs/examples.md, docs/examples.mdR609-R707)Configuration Updates:
rector.phpto skip theStringClassNameToClassConstantRectorrule for compatibility with PHP 5.5. (rector.php, rector.phpR21)Minor Fixes:
hunterhelper function for clarity. (src/helpers.php, src/helpers.phpL12)