commandline_splitter2 1.0.1
commandline_splitter2: ^1.0.1 copied to clipboard

Splits command line string into a list of individual parts suitable for using with Process.start or Process.run.

Command line splitter #

This package is forked from desktop-dart/commandline_splitter.

Splits command line string into a list of individual parts suitable for using with Process.start or Process.run.

Similar to shlex.split in python.

Example #

import 'package:commandline_splitter2/commandline_splitter2.dart';

void main() {
  print(split('bash -c "uname -a"')); // => [bash, -c, "uname -a"]
}

Test #

$ flutter test
0
likes
130
pub points
15%
popularity

Splits command line string into a list of individual parts suitable for using with Process.start or Process.run.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

More

Packages that depend on commandline_splitter2