io 0.3.2 io: ^0.3.2 copied to clipboard
Utilities for the Dart VM Runtime.
0.3.2 #
-
ansi.dart
-
Added
forScript
named argument to top-levelwrapWith
function. -
AnsiCode
-
Added
String get escapeForScript
property. -
Added
forScript
named argument towrap
function.
-
-
0.3.1 #
- Added
SharedStdIn.nextLine
(similar toreadLineSync
) andlines
:
main() async {
// Prints the first line entered on stdin.
print(await sharedStdIn.nextLine());
// Prints all remaining lines.
await for (final line in sharedStdIn.lines) {
print(line);
}
}
-
Added a
copyPath
andcopyPathSync
function, similar tocp -R
. -
Added a dependency on
package:path
. -
Added the remaining missing arguments to
ProcessManager.spawnX
which forward toProcess.start
. It is now an interchangeable function for running a process.
0.3.0 #
- BREAKING CHANGE: The
arguments
argument toProcessManager.spawn
is now positional (not named) and required. This makes it more similar to the built-inProcess.start
, and easier to use as a drop in replacement:
main() {
processManager.spawn('dart', ['--version']);
}
-
Fixed a bug where processes created from
ProcessManager.spawn
could not have theirstdout
/stderr
read through their respective getters (a runtime error was always thrown). -
Added
ProcessMangaer#spawnBackground
, which does not forwardstdin
. -
Added
ProcessManager#spawnDetached
, which does not forward any I/O. -
Added the
shellSplit()
function, which parses a list of arguments in the same manner as the POSIX shell.
0.2.0 #
- Initial commit of...
FutureOr<bool> String isExecutable(path)
.ExitCode
ProcessManager
andSpawn
sharedStdIn
andSharedStdIn
ansi.dart
library with support for formatting terminal output