shell_command_flutter 1.0.0 copy "shell_command_flutter: ^1.0.0" to clipboard
shell_command_flutter: ^1.0.0 copied to clipboard

Execute the Native commands with respect to platform like Windows,MacOS,Linux

shell_command_flutter #

pub package

shell_command execute the Native commands with respect to platform like Windows,MacOS,Linux The result is inResultSet with code and response from terminal.

Currently Windows is supported. I am working on other OS, soon will update package

Usage #

To use this plugin, add shell_command_flutter as a dependency in your pubspec.yaml file.

###Example

  void execute() {
    runCommand("flutter doctor",outputType: outputType).then((result) {
      print("STATUS CODE ${result.code}");
      print("RESPONSE ${result.output}");
    }).catchError((error) {});
  }

ShellCommand #

ShellCommand.CMD_STATUS_CODE default, return status code of the command executed like -1, 0, 1 ..

ShellCommand.CMD_RESPONSE return status code as well as command output also

Upcoming #

  1. Support for MacOS and Linux
  2. Reduce delay in long output commands
1
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Execute the Native commands with respect to platform like Windows,MacOS,Linux

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on shell_command_flutter