summaryrefslogtreecommitdiff
path: root/src/Run.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-12-06 11:16:46 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-12-06 20:11:59 +0100
commit6c5eaccc5d79502a3ab67190a996025635f88564 (patch)
tree048823f91ec9271d021f909d57a96d063953e8c5 /src/Run.hs
parentb6b1c6e8b446abc80a3f4b6f382407e4e262e28e (diff)
Show command and arguments for spawned processes in output
Changelog: Show command and arguments for spawned processes in verbose output
Diffstat (limited to 'src/Run.hs')
-rw-r--r--src/Run.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Run.hs b/src/Run.hs
index 1a1dea0..436ce6b 100644
--- a/src/Run.hs
+++ b/src/Run.hs
@@ -188,9 +188,10 @@ runStep = \case
opts <- asks $ teOptions . fst
let pname = ProcName tname
tool = fromMaybe (optDefaultTool opts) (lookup pname $ optProcTools opts)
- cmd = unwords $ tool : map (T.unpack . escape) args
+ cmd = T.unwords $ T.pack tool : map escape args
escape = ("'" <>) . (<> "'") . T.replace "'" "'\\''"
- withProcess (Right node) pname Nothing cmd $ runStep . inner
+ outProcName OutputChildExec pname cmd
+ withProcess (Right node) pname Nothing (T.unpack cmd) $ runStep . inner
SpawnShell mbname node script inner -> do
let tname | Just (TypedVarName (VarName name)) <- mbname = name