fix: [#850] artisan help incorrect behavior#1330
Conversation
Summary of ChangesHello @hwbrzzl, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue where the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses an issue where running artisan without any sub-command was incorrectly showing the help for the help command instead of listing all available commands. The fix correctly changes the default behavior to execute the list command, which displays the command list.
The changes are well-implemented and include:
- Modifying the default command from
helptolist. - Refactoring
ListCommandto be more self-contained and efficient by removing its dependency onArtisanand directly usingurfave/cli's help function. - Updating tests to reflect the new behavior.
The code is cleaner and the fix is effective. I have one suggestion for a minor cleanup to remove some resulting dead code.
| // "static": config.Env("DEPLOY_STATIC", true), | ||
| // }, | ||
| // console.NewDeployCommand(configFacade, artisanFacade), | ||
| console.NewHelpCommand(), |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1330 +/- ##
==========================================
+ Coverage 70.07% 70.12% +0.05%
==========================================
Files 282 281 -1
Lines 16752 16740 -12
==========================================
Hits 11739 11739
+ Misses 4522 4510 -12
Partials 491 491 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📑 Description
Closes goravel/goravel#850
✅ Checks