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

when running a command, stdin requires a keypress on Windows #1007

Open
bevancollins opened this issue Sep 4, 2024 · 0 comments
Open

when running a command, stdin requires a keypress on Windows #1007

bevancollins opened this issue Sep 4, 2024 · 0 comments

Comments

@bevancollins
Copy link

I am wanting to pass a file to the stdin of a command on Windows
type file.txt | inv doecho

where:

import invoke

@invoke.task()
def doecho(ctx):
    ctx.run('more')

more is run but waits until a key is pressed and then executes as expected. This is nothing to do with more.. the same result can be seen when running cat from cygwin or anything else that reads from stdin

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

1 participant