This is a basic CLI app for the code_on_the_rocks state management package.
Installation
dart pub global activate cotr_cli
Usage
cotr view -n home
The view
command will create the following contents:
- A new directory with the name of the view (ex.
home
) - A new dart file containing the
ViewModelBuilder
(ex.home_view.dart
) - A new dart file containing the
ViewModel
andViewModelBuilder
(ex.home_view_model.dart
)