ndmitchell / shake

Shake build system
http://shakebuild.com
Other
772 stars 118 forks source link

Interactive commands not working #728

Open menelaos opened 5 years ago

menelaos commented 5 years ago

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

ndmitchell commented 5 years ago

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 commented 5 years ago

Thanks for clarifying!