flutter_getx_cli 1.0.0 copy "flutter_getx_cli: ^1.0.0" to clipboard
flutter_getx_cli: ^1.0.0 copied to clipboard

A command-line tool for GetX to automate module creation.

getx_cli #

A command-line tool to speed up your GetX development workflow.

Installation #

dart pub global activate getx_cli

Usage #

Create a new module #

getx_cli create <module_path>

This will create a new module with a view, controller, and binding. It will also automatically inject the route into your app_pages.dart and app_routes.dart files.

Example:

getx_cli create auth/login

This will create the following files:

  • lib/app/modules/auth/login/views/login_view.dart
  • lib/app/modules/auth/login/controllers/login_controller.dart
  • lib/app/modules/auth/login/bindings/login_binding.dart

It will also add a new route to lib/app/routes/app_routes.dart and a new GetPage to lib/app/routes/app_pages.dart.

Options:

  • --no-route: Create the module without adding a route.

Remove a module #

getx_cli remove <module_path>

This will remove the module and its associated routes.

Options:

  • --routes-only: Only remove the routes, leaving the module files intact.
1
likes
0
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

A command-line tool for GetX to automate module creation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

path

More

Packages that depend on flutter_getx_cli