get_cli 0.10.3 copy "get_cli: ^0.10.3" to clipboard
get_cli: ^0.10.3 copied to clipboard

outdated

The official CLI from Getx Framework to build Flutter Applications easily

The official CLI from Getx Framework of Flutter

This CLI is in Beta stage, use with caution.

// to install:
pub global activate get_cli 

// To create a flutter project with the chosen structure from begin:
get create project 

// To create the chosen structure on project:
get init 

// to create a page: Pages have controller, view, and binding
get create page:home // or other name, ex: get create page:login 

// to create a new controller in a specific folder:
get create controller:dialogcontroller on home
// Note: you don't need to point the way, Getx will automatically search for the home folder and insert your controller there.

// to create a new view in a specific folder:
get create view:dialogview on home
// Note: you don't need to point the way, Getx will automatically search for the home folder and insert your controller there.

// to create the route file:
get create route 

// to install package on your project
get install camera

// to install package in dependencies_dev on your project
get install flutter_launcher_icons --dev

// to remove package on your project
get remove http

// to remove two or two or more packages on your project
get remove http path

// to update CLI 
get update // or upgrade

// to shows the installed version 
get -v // or get -version 

TODO:

  • When creating a controller, automatically insert it into the Binding
  • When creating a page, insert it automatically in Routes
  • Support for customModels
  • Unit tests
  • Improve structure
  • Added backup
  • suggest update whenever the package is updated in pub-web.flutter-io.cn
  • help

Adding new functions: #

  • Add the folder where the new files will be created in core/structure. The key of Map is the command, the value is the path

  • Create a sample and insert it in the samples/impl folder (you need to create a class, extend Sample)

  • Create the function for creating the class or folders and insert in functions. If the command is for creation, in the create folder, if it is for startup (as a new structure) in init

  • Open the create/create.dart file, add your command to the switch and validation, then point to its function.

Ready!

618
likes
0
pub points
96%
popularity

Publisher

verified publishergetx.site

The official CLI from Getx Framework to build Flutter Applications easily

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ansicolor, archive, cli_menu, http, path, process_run, recase, yaml

More

Packages that depend on get_cli