open_mustang_cli 1.0.10 copy "open_mustang_cli: ^1.0.10" to clipboard
open_mustang_cli: ^1.0.10 copied to clipboard

outdated

This package should be installed as global binary. It helps in generating all the necessary source file templates for a screen.

Mustang CLI #

Setup #

  • Run the following command to install or update the cli
    dart pub global activate open_mustang_cli
    

Commands #

  • Usage

    omcli # prints help
    
  • Create the screen and model files

    # use routes/booking to create screen files inside sub-directory routes
    omcli -s booking
    
  • Create a model file

    omcli -m vehicle
    
  • Create a mustang utils file

    omcli -u
    
  • Generate framework source files

    # Run this inside the root directory of a Flutter project
    # -w enables watch mode. Use -d for one time generation
    omcli -w 
    
  • Clean generated framework source files

    # Run this inside the root directory of a Flutter project
    omcli -d 
    

Config file (Advanced) #

Source templates that this tool generates can be customized using config file.

  • Create file name mustang-cli.yaml in the home (Linux/Mac) directory or user profile (Windows) directory
  • Config file format
  serializer: package:mypackage/mypackage_exports.dart
  screen:
    imports:
      - package:my_widgets/widgets.dart
    progress_widget: MyProgressIndicatorScreen()
    error_widget: MyErrorScreen()
2
likes
0
pub points
0%
popularity

Publisher

verified publisherwrench.com

This package should be installed as global binary. It helps in generating all the necessary source file templates for a screen.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, path, yaml

More

Packages that depend on open_mustang_cli