devforge 1.5.0 copy "devforge: ^1.5.0" to clipboard
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);
  }
}
0
likes
140
points
75
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CLI tool to generate Flutter/Dart boilerplate code.

Repository (GitHub)

License

MIT (license)

Dependencies

args, dio, http, image, interact, intl, path, shared_preferences, yaml

More

Packages that depend on devforge