type CommandResult = { exitCode: number output: string error: string };