Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to see output as streamed from runAsync, not only once per line #290

Open
sethladd opened this issue Aug 28, 2015 · 1 comment
Open

Comments

@sethladd
Copy link
Collaborator

The current runAsync doesn't allow me to see the live output of a running task.

The docs say:

/// If [quiet] is false, [log]s the stdout as line breaks are encountered.
/// The stderr is always logged.

I'd really instead like to simply pipe stdout from the Process to the console's stdout.

In my example, I am writing . when something happens... I'm not writing newlines.

@sethladd
Copy link
Collaborator Author

This is the workaround I'm using:

    var process = await Process.start('dart', [
      'bin/dartdoc.dart',
      '--output',
      '${docsDir.path}',
      '--sdk-docs',
      '--show-progress'
    ]);
    stdout.addStream(process.stdout);
    stderr.addStream(process.stderr);

Instead of the old runAsync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant