-
Notifications
You must be signed in to change notification settings - Fork 105
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 modifyCmdFunc to Scanner and WithModifyCmdFunc option #103
Conversation
Hi @process0 ! Thanks for this PR. Could you explain what is your use case here? What changes do you need to apply to I'm fine with the idea but I feel like the naming of |
Use cases for me are setting I can change the name to |
For me it was quite confusing at the first time I looked at the function name. Nearly all current functions that begin with Additionally we should only change this single attribute |
@elivlo There are Limiting functionality to |
@process0 You're right. I just wanted to point out that I became a little perplexed. But it is fine for me to name the function like this. My opinion is that we should cover the command as best we can when there is currently no need for it. I am fine with functions that modify |
…cAttr to modify *cmd.Exec SysProcAttr
@elivlo Understood. I've updated the PR to support custom SysProcAttr only, as that is my need. |
Alright. I'll approve it. |
This PR adds support for modifying the exec.Cmd instance