(command: ChildProcess.Command)
| 81 | ) |
| 82 | |
| 83 | const describeCommand = (command: ChildProcess.Command): string => { |
| 84 | if (command._tag === "StandardCommand") { |
| 85 | return command.args.length ? `${command.command} ${command.args.join(" ")}` : command.command |
| 86 | } |
| 87 | return `${describeCommand(command.left)} | ${describeCommand(command.right)}` |
| 88 | } |
| 89 | |
| 90 | const wrapError = (description: string, cause: unknown): AppProcessError => |
| 91 | cause instanceof AppProcessError ? cause : new AppProcessError({ command: description, cause }) |
no outgoing calls
no test coverage detected