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

Interactive commands not working #728

Open
menelaos opened this issue Sep 20, 2019 · 2 comments
Open

Interactive commands not working #728

menelaos opened this issue Sep 20, 2019 · 2 comments
Labels

Comments

@menelaos
Copy link

Sometimes I use phony targets as sort of a command dispatcher and ran into the issue that commands that require further user input do not work properly.

main :: IO ()
main = shakeArgs shakeOptions $ do
    phony "clean" $ do
      cmd_ "git clean --interactive"

You can also use a simpler example like cmd_ "cat".
In any case, the user input does not seem to reach the program.

This might be related to #169.

@ndmitchell
Copy link
Owner

Interactive commands aren't designed to work with cmd. I recommend calling the right functions from System.Process directly to meet your needs. I'll add a note to that effect to the docs.

@menelaos
Copy link
Author

Thanks for clarifying!

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

No branches or pull requests

2 participants