devforge 1.5.0
devforge: ^1.5.0 copied to clipboard
CLI tool to generate Flutter/Dart boilerplate code.
example/devforge_example.dart
import 'dart:io';
/// Simple example showing how to invoke the `devforge` CLI
/// from Dart using [Process.run].
///
/// In real projects you typically run `devforge` directly from a shell:
/// $ devforge api_client
///
/// This example just demonstrates how to trigger a command programmatically.
Future<void> main() async {
// Check that devforge is on PATH.
final result = await Process.run(
'devforge',
const ['--version'],
runInShell: true,
);
stdout.writeln('devforge --version output:');
stdout.write(result.stdout);
if (result.exitCode != 0) {
stderr.write(result.stderr);
}
}