command_wrapper 0.2.0 copy "command_wrapper: ^0.2.0" to clipboard
command_wrapper: ^0.2.0 copied to clipboard

Dart 1 only

Make it easy to create a Dart wrapper for command line tools.

example/command_wrapper_example.dart

// Copyright (c) 2016, Kwang Yul Seo. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:command_wrapper/command_wrapper.dart';

main() async {
  // Use dart CommandWrapper instance.
  CommandResult result = await dart.run(['--version']);
  print(result.stderr.join(''));

  // Create a new CommandWrapper.
  CommandWrapper curl = new CommandWrapper('curl');
  result = await curl.run(['--version']);
  print(result.stdout.join(''));
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Make it easy to create a Dart wrapper for command line tools.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

which

More

Packages that depend on command_wrapper