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.
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.
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.
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 https://github.com/ndmitchell/shake/issues/169.