import { ScriptLine, define } from "./types" type RedirectOutputOpts = { output: string } export type HasRedirectOutput = { redirectOutput(childCommand: ScriptLine, opts: RedirectOutputOpts): string } export const redirectOutput = { bash: define({ redirectOutput: (childCommand, opts) => `(${childCommand}) > ${opts.output}`, }), }