process_run 0.12.1-1 copy "process_run: ^0.12.1-1" to clipboard
process_run: ^0.12.1-1 copied to clipboard

outdated

Process run helpers for Linux/Win/Mac and which like feature for finding executables.

example/example.dart

import 'dart:async';

import 'package:process_run/shell.dart';

Future main() async {
  // This works on Windows/Linux/Mac

  var shell = Shell();

  await shell.run('''

# Display some text
echo Hello

# Display dart version
dart --version

# Display pub version
pub --version

  ''');

  shell = shell.pushd('example');

  await shell.run('''

# Listing directory in the example folder
dir

  ''');
  shell = shell.popd();
}
272
likes
0
pub points
97%
popularity

Publisher

verified publishertekartik.com

Process run helpers for Linux/Win/Mac and which like feature for finding executables.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, charcode, collection, meta, path, pub_semver, string_scanner, synchronized, yaml

More

Packages that depend on process_run