| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PMS.Infra.CmdRun.DS.Core
Synopsis
- app :: AppContext ()
- src :: ConduitT () CmdRunCommand AppContext ()
- cmd2task :: ConduitT CmdRunCommand (IOTask ()) AppContext ()
- sink :: ConduitT (IOTask ()) Void AppContext ()
- genEchoTask :: EchoCmdRunCommandData -> AppContext (IOTask ())
- echoTask :: TQueue McpResponse -> EchoCmdRunCommandData -> String -> IOTask ()
- genCmdRunTask :: DefaultCmdRunCommandData -> AppContext (IOTask ())
- cmdRunTask :: TQueue McpResponse -> DefaultCmdRunCommandData -> String -> Int -> IO ()
Documentation
app :: AppContext () Source #
src :: ConduitT () CmdRunCommand AppContext () Source #
cmd2task :: ConduitT CmdRunCommand (IOTask ()) AppContext () Source #
genEchoTask :: EchoCmdRunCommandData -> AppContext (IOTask ()) Source #
echoTask :: TQueue McpResponse -> EchoCmdRunCommandData -> String -> IOTask () Source #
genCmdRunTask :: DefaultCmdRunCommandData -> AppContext (IOTask ()) Source #
cmdRunTask :: TQueue McpResponse -> DefaultCmdRunCommandData -> String -> Int -> IO () Source #
On Windows, .bat scripts call "chcp 65001" at their start to switch the active code page to UTF-8. This ensures that both built-in commands (echo, move, copy, etc.) and external commands (tree.com, xcopy.exe, etc.) emit UTF-8 output. The raw ByteString received from the process is therefore UTF-8 on all platforms, and decodeUtf8With lenientDecode is used uniformly.