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

Allow to listen and modify redirected standard output of a process #2270

Closed
AntonPetrov83 opened this issue Sep 5, 2018 · 1 comment
Closed
Milestone

Comments

@AntonPetrov83
Copy link

Currently ProcessAliases do not allow to receive and modify (or filter) other process's outputs in real time while the process is running.

I am implementing wrappers for command line tools like SVN, xcodebuild and it would be great to have an opportunity to pipe outputs of tools or modify it for better build logs.

After a short Gitter discussion there is a suggestion to add following output handlers to ProcessSettings:

public Func<string, string> RedirectedStandardOutputHandler;
public Func<string, string> RedirectedStandardErrorHandler;

By @devlead:

if one would want to filter out sensitive information i.e. one could retract that from the buffer and null if it should be totally omitted.

fseegraeber added a commit to fseegraeber/cake that referenced this issue Jan 12, 2019
fseegraeber added a commit to fseegraeber/cake that referenced this issue Jan 12, 2019
fseegraeber added a commit to fseegraeber/cake that referenced this issue Jan 12, 2019
devlead pushed a commit to fseegraeber/cake that referenced this issue Jan 14, 2019
@devlead devlead added this to the v0.33.0 milestone Jan 14, 2019
devlead added a commit that referenced this issue Jan 14, 2019
* fseegraeber-GH-2270:
  (GH-2270) Added RedirectedStandardOutputHandler and RedirectedStandardErrorHandler.
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

2 participants