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

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
    
  • Create the screen and model files

    omcli -s booking
    
  • Create a model file

    omcli -m vehicle
    
  • Generate framework source files

    omcli -w 
    
  • Clean generated framework source files

    omcli -d 
    

Config file (Advanced) #

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

  • Create file name mustang.yaml in the root of the project directory
  • Config file format
  # Use serializers from the specified dependant package
  serializer: package:mypackage/mypackage_exports.dart
  # customize generated screen template source files
  screen:
    imports:
      # include the following import in all screen template source files
      - package:my_widgets/widgets.dart
    # Use custom progress indicator in the screen template source files
    progress_widget: MyProgressIndicatorScreen()
    # Use custom error widget in the screen template source files
    error_widget: MyErrorScreen()
2
likes
160
points
65
downloads

Documentation

API reference

Publisher

verified publisherwrench.com

Weekly Downloads

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

BSD-3-Clause (license)

Dependencies

args, path, yaml

More

Packages that depend on open_mustang_cli