Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 committed Jul 10, 2024
1 parent c8d333a commit 35b0701
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/@dcl/sdk-commands/src/logic/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ interface Options {

export type IProcessSpawnerComponent = {
exec(cwd: string, command: string, args: string[], options?: Partial<Options>): Promise<void>
// exec2(cwd: string, command: string, args: string[], options?: Partial<Options>): Promise<unknown>
}

export function createProcessSpawnerComponent(spawnFn: typeof spawn): IProcessSpawnerComponent {
Expand Down Expand Up @@ -37,23 +36,5 @@ export function createProcessSpawnerComponent(spawnFn: typeof spawn): IProcessSp
})
})
}
// async exec2(cwd, command, args, { env, silent } = {}) {
// const subprocess = spawnFn(command, args, { shell: true, cwd, env: { ...process.env, NODE_ENV: '', ...env } })
// subprocess.on('error', (err) => {
// console.log({ err })
// })
// subprocess.on('message', (msg) => {
// console.log({ msg })
// })
// subprocess.on('close', (code: number) => {
// if (code !== 0) {
// const _ = `${command} ${args.join(' ')}`
// reject(new Error(`Command "${_}" exited with code ${code}. Please try running the command manually`))
// return
// }

// resolve(undefined)
// })
// }
}
}

0 comments on commit 35b0701

Please sign in to comment.