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

How would I answer to prompts by running say a git pull command to fill in user/pass? #56

Closed
aligajani opened this issue Jan 9, 2017 · 4 comments

Comments

@aligajani
Copy link

No description provided.

@mwilliamson
Copy link
Owner

I've not tried doing anything with password prompts. You can write to stdin, so that might be sufficient.

@aligajani
Copy link
Author

How would that work in the context of Spur? Any samples or examples ?

@mwilliamson
Copy link
Owner

One you've spawned a process, you can write to its stdin using stdin_write(), for instance:

process = shell.spawn(["sh", "-c", "read value; echo $value"])
process.stdin_write(b"hello\n")
result = process.wait_for_result()

@aligajani
Copy link
Author

aligajani commented Jan 10, 2017 via email

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

No branches or pull requests

2 participants