feat(cli): get clean command added#295
Open
Harsh4114 wants to merge 1 commit into
Open
Conversation
get clean command
get clean commandget clean command added
There was a problem hiding this comment.
Pull request overview
This PR adds a new top-level get clean command to the GetX CLI intended to run the equivalent of flutter clean, and wires it into the existing command registry/help output.
Changes:
- Added
CleanCommandand registered it in the CLI command list/exports. - Added
ShellUtils.flutterClean()to executeflutter clean. - Added an English hint string for the new command and updated generated locale keys.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| translations/en.json | Adds the hint.clean text for the new command. |
| lib/core/locales.g.dart | Adds LocaleKeys.hint_clean (but currently missing the actual locale map entries). |
| lib/common/utils/shell/shel.utils.dart | Adds flutterClean() helper to run flutter clean. |
| lib/commands/impl/commads_export.dart | Exports the new clean command implementation. |
| lib/commands/impl/clean/clean.dart | Implements get clean command. |
| lib/commands/commands_list.dart | Registers CleanCommand() in the top-level command list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| static const error_access_denied = 'error_access_denied'; | ||
| static const error_unexpected = 'error_unexpected'; | ||
| static const example = 'example'; | ||
| static const hint_clean = 'hint_clean'; |
Comment on lines
13
to
16
| static Future<void> pubGet() async { | ||
| LogService.info('Running `flutter pub get` …'); | ||
| await run('dart pub get', verbose: true); | ||
| } |
Comment on lines
38
to
41
| "hint": { | ||
| "clean": "Runs flutter clean", | ||
| "create": { | ||
| "controller": "Generate controller", |
Comment on lines
44
to
49
| static const error_access_denied = 'error_access_denied'; | ||
| static const error_unexpected = 'error_unexpected'; | ||
| static const example = 'example'; | ||
| static const hint_clean = 'hint_clean'; | ||
| static const hint_create_controller = 'hint_create_controller'; | ||
| static const hint_create_page = 'hint_create_page'; |
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.
Description
This pull request adds a new
get cleancommand to the GetX CLI.The command provides functionality equivalent to
flutter clean, allowing developers to clean generated build files and project artifacts directly through the GetX CLI.Changes Made
get cleancommandPurpose
This feature improves developer experience by providing a unified CLI workflow inside GetX CLI without requiring separate Flutter commands.
Example Usage
Expected Behavior
Running:
Executes behavior equivalent to:
Notes