diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-12-06 11:16:46 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-12-06 20:11:59 +0100 |
| commit | 6c5eaccc5d79502a3ab67190a996025635f88564 (patch) | |
| tree | 048823f91ec9271d021f909d57a96d063953e8c5 /src/Run.hs | |
| parent | b6b1c6e8b446abc80a3f4b6f382407e4e262e28e (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.hs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |