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

Add global / task level option for streaming stdout/stderr from child process #527

Open
steveukx opened this issue Nov 20, 2020 · 2 comments
Milestone

Comments

@steveukx
Copy link
Owner

V2 allows effective streaming of the git binary's output using the setOutputHandler method, this enhancement would add a new option for streaming each task independently as an emitter.

const git = simpleGit();
const statusResult = await git.status();

// effectively the same as using setOutputHandler, receives progress from all tasks
git.on('progress', (task, stdOut, stdErr) => {});

// receives only those progress events from the status task
statusResult.on('progress', (task, stdOut, stdErr) => {});
@xiaoxian521
Copy link

v3 edition Is there any way to monitor the download progress?

@ockham
Copy link

ockham commented Feb 12, 2021

@steveukx Seconding @xiaoxian521's request -- it'd be great if this could be used to show progress of git clone, e.g. with a percentage. To that end, it'd also be necessary to know the total bytes expected to be downloaded. Would you consider adding such a feature? (If there isn't one already, that is 😄)

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

3 participants