diff options
author | zqqw | 2020-10-26 02:11:42 +0000 |
---|---|---|
committer | zqqw | 2020-10-26 02:11:42 +0000 |
commit | 0601052833bfb97cc178cdbd7aa150ecec4c7e5b (patch) | |
tree | 3dfe606433ea45dc48e106a8caf0d221f1e1a5f2 /src/main.nim | |
parent | f2a93bea278e9f43cad98ca8e74f9a423f36e333 (diff) |
execRedirect - pipe stdout from child
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim index d8ad5a5..73030d2 100644 --- a/src/main.nim +++ b/src/main.nim @@ -177,7 +177,7 @@ proc handleHelp(operation: OperationType) = .map(o => @["-" & o.pair.short.get]) .optFirst.get(@[]) & @["-h"] - let (lines, _) = forkWaitRedirect(() => execResult(pacmanCmd & operationArgs)) + let (lines, _) = forkWaitRedirect(() => execRedirect(pacmanCmd & operationArgs)) for line in lines: echo(line.replace(re"\bpacman\b", "pakku")) |