system 0.1.0 copy "system: ^0.1.0" to clipboard
system: ^0.1.0 copied to clipboard

outdated

Invoke operating system commands. Exposes `system()` on macOS & Linux. Uses `dart:ffi`.

example/main.dart

import 'package:system/system.dart';

// Use the system `open` command to lauch the system default web browser on the
// Url dart.dev.
main() async {
  bool result = System.invoke('open http://dart.dev');
  if (result) {
    print('Succesfully launched dart.dev');
  } else {
    print('Failed launching dart.dev');
  }
}
11
likes
0
pub points
24%
popularity

Publisher

verified publishermiksen.dk

Invoke operating system commands. Exposes `system()` on macOS & Linux. Uses `dart:ffi`.

Homepage

License

unknown (LICENSE)

Dependencies

ffi

More

Packages that depend on system