You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement functions to run Shell commands easier in the Iris applications. A simple implementation would be something like this (inspired by shellmet):
--| Run the command but don't print it
shellSilent
::FilePath--^ Executable name-> [Text] --^ Arguments->IO()--| Run the command and print the command itself to stderr
shell
::Text--^ Prompt->FilePath--^ Executable name-> [Text] --^ Arguments->IO()--| Run the command, don't print it and return its stdout
shellRetSilent
::FilePath--^ Executable name-> [Text] --^ Arguments->IOText--| Run the command, print it with prompt to stderr and return its stdout
shellRet
::Text--^ Prompt->FilePath--^ Executable name-> [Text] --^ Arguments->IOText
Alternatively, we can integrate with one of the existing and battle-tested libraries:
Implement functions to run Shell commands easier in the Iris applications. A simple implementation would be something like this (inspired by
shellmet
):Alternatively, we can integrate with one of the existing and battle-tested libraries:
Possible usage inside Iris itself —
Iris.Browse
module:iris/src/Iris/Browse.hs
Lines 69 to 74 in 7e69433
Open questions:
MonadReader CliEnv
to use something specific for running shell commands?The text was updated successfully, but these errors were encountered: