Skip to content

feat(cli): get clean command added#295

Open
Harsh4114 wants to merge 1 commit into
jonataslaw:masterfrom
Harsh4114:master
Open

feat(cli): get clean command added#295
Harsh4114 wants to merge 1 commit into
jonataslaw:masterfrom
Harsh4114:master

Conversation

@Harsh4114

Copy link
Copy Markdown

Description

This pull request adds a new get clean command 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

  • Added support for the get clean command
  • Integrated command execution into the existing CLI structure
  • Implemented clean process handling
  • Maintained compatibility with current GetX CLI workflows

Purpose

This feature improves developer experience by providing a unified CLI workflow inside GetX CLI without requiring separate Flutter commands.

Example Usage

get clean

Expected Behavior

Running:

get clean

Executes behavior equivalent to:

flutter clean

Notes

  • No breaking changes introduced
  • Follows existing command patterns used in GetX CLI
  • Helps simplify project maintenance commands for developers

Copilot AI review requested due to automatic review settings May 11, 2026 10:51
@Harsh4114 Harsh4114 changed the title "get clean" command feat(cli): add "get clean" command May 11, 2026
@Harsh4114 Harsh4114 changed the title feat(cli): add "get clean" command feat(cli): add get clean command May 11, 2026
@Harsh4114 Harsh4114 changed the title feat(cli): add get clean command feat(cli): get clean command added May 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 CleanCommand and registered it in the CLI command list/exports.
  • Added ShellUtils.flutterClean() to execute flutter 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.

Comment thread lib/core/locales.g.dart
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);
}

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Comment thread translations/en.json
Comment on lines 38 to 41
"hint": {
"clean": "Runs flutter clean",
"create": {
"controller": "Generate controller",
Comment thread lib/core/locales.g.dart
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';
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.

2 participants