flutter_scripts 0.0.3 icon indicating copy to clipboard operation
flutter_scripts: ^0.0.3 copied to clipboard

Run dart/flutter scripts defined in a pubspec.yaml

flutter_scripts #

coverage style: very good analysis License: MIT

Generated by the Very Good CLI 🤖

Run scripts defined in a pubspec.yaml just like in node.js with the run command.

Getting Started 🚀 #

If the CLI application is available on pub, activate globally via:

dart pub global activate flutter_scripts

Or locally via:

dart pub global activate --source=path <path to this package>

Usage #

$ flutter_scripts run

# Set command to run
$ flutter_scripts run --c update_db

# Show CLI version
$ flutter_scripts --version

# Show usage help
$ flutter_scripts --help

Add scripts to any Flutter/Dart project in the pubspec.yaml like the following:

  generate_icons: flutter pub run flutter_launcher_icons:main
  generate_files: flutter pub run build_runner build --delete-conflicting-outputs