flutter_runner_cli 1.0.12
flutter_runner_cli: ^1.0.12 copied to clipboard
CLI interaktif Flutter — pilih environment & device, auto-run dengan dart-define. Zero dependencies.
example/example.dart
/// Example usage of flutter_runner_cli.
///
/// This example demonstrates how to use the FlutterRunnerCli programmatically.
library;
import 'package:flutter_runner_cli/flutter_runner_cli.dart';
/// Run the Flutter Runner CLI interactively.
///
/// Call this from your project root where `.flutter_runner.json` is located.
Future<void> main(List<String> args) async {
// Create the CLI instance
final cli = FlutterRunnerCli();
// Run with optional arguments:
// --init : Create a new .flutter_runner.json config
// --config : Manage global configuration
// --help : Show help message
await cli.run(args);
}