-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work on #103, add runSync and runExecutableArgumentsSync both to glob…
…al space and Shell class
- Loading branch information
1 parent
f9ee913
commit 8a61474
Showing
11 changed files
with
395 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:process_run/process_run.dart'; | ||
|
||
void main() { | ||
// Run the command | ||
runExecutableArgumentsSync('echo', ['hello world']); | ||
|
||
// Stream the out to stdout | ||
runExecutableArgumentsSync('echo', ['hello world']); | ||
|
||
// Calling dart | ||
runExecutableArgumentsSync('dart', ['--version'], verbose: true); | ||
|
||
// stream the output to stderr | ||
runExecutableArgumentsSync('dart', ['--version'], stderr: stderr); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.