Clean Dart CLI

screenshots/logo.png

This project is one cli for integrate Flutter and Dart with Clean Architecture

With this cli you can generate the structure of the folders based on the structure of the Clean Architecture and files like models, usecases and entites for automatize the time of the development.

How to use?

First thing that you need to do is activate the clean-dart-cli, for this run the command bellow in your terminal

$ pub global activate clean_dart_cli

Select options on terminal

$ clean-dart

Generate the layers folders

With clean-dart-cli you can generate all folders of the one specific layer

how to generate domain layer

$ clean-dart gen layer domain /example

screenshots/domain.png

how to generate infra layer

$ clean-dart gen layer infra /example

screenshots/infra.png

how to generate external layer

$ clean-dart gen layer external /example

screenshots/external.png

how to generate ui layer

$ clean-dart gen layer ui /example

screenshots/ui.png

how to generate complete layers

$ clean-dart gen layer complete /example

screenshots/completedartcli.png

Generate Files

how to generate usecases

$ clean-dart gen usecase /example/domain/usecases RegisterUser

screenshots/usecase.png

how to generate entities

$ clean-dart gen entity /example/domain/entities User

screenshots/entity.png

how to generate models

$ clean-dart gen model /example/infra/models User

screenshots/model.png

darthow to generate modelsJs (Model with Json Serializable)

$ clean-dart gen modelJs /user/external/models User

screenshots/model_js.png

how to generate error

$ clean-dart gen error /user/domain/error User

screenshots/error.png

Upgrade Clean Dart Cli

$ clean-dart upgrade

List Commands

$ clean-dart --help

How to contribute?

You can clone this project and send a pull request with your improvements or open issues

Libraries

app_module
ask_first_question
common_commands_controller
common_module
constants
entity_template
error_template
file_exists_error
generate_complete
generate_controller
generate_domain
generate_domain_controller
generate_entity
generate_error
generate_external
generate_infra
generate_layer_controller
generate_model
generate_model_js
generate_module
generate_ui
generate_usecases
get_version
help_command
iask_first_question
igenerate_entity
igenerate_error
igenerate_layers
igenerate_model
igenerate_model_js
igenerate_usecases
iget_version_cli
ihelp_command
iupgrade_cli
model_js_template
model_template
output_utils
upgrade_cli
upgrade_error
usecase_template
validate_arguments
wellcome_message