Skip to content

Commit b5e7e50

Browse files
committed
chore: wip
1 parent b3679bc commit b5e7e50

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.stacks/core/cli/src/run.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ import { exec } from './exec'
2828
* ```
2929
*/
3030
export async function runCommand(command: string, options?: string | CliOptions): Promise<Result<Subprocess, StacksError>> {
31-
return new Promise(async (resolve, reject) => {
32-
const result = await exec(command, options)
31+
const result = await exec(command, options)
3332

34-
if (result.isErr())
35-
return reject(result.error)
33+
if (result.isErr())
34+
return reject(result.error)
3635

37-
return resolve(result)
38-
})
36+
return result
3937
}
4038

4139
/**

0 commit comments

Comments
 (0)