Skip to content

Commit 939f07e

Browse files
committed
chore: wip
1 parent aa524c1 commit 939f07e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

storage/framework/core/actions/src/helpers/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import type { Action as ActionType } from '@stacksjs/actions'
22
import type { Err, Ok, Result } from '@stacksjs/error-handling'
33
import type { ActionOptions, CliOptions, CommandError, Readable, Subprocess, Writable } from '@stacksjs/types'
4-
import process from 'node:process'
54
import { buddyOptions, runCommand, runCommands } from '@stacksjs/cli'
6-
import { err } from '@stacksjs/error-handling'
5+
import { err, handleError } from '@stacksjs/error-handling'
76
import { log } from '@stacksjs/logging'
87
import * as p from '@stacksjs/path'
98
import { globSync } from '@stacksjs/storage'
@@ -43,8 +42,7 @@ export async function runAction(action: Action, options?: ActionOptions): Promis
4342
}
4443
}
4544
catch (error) {
46-
console.log('error', error)
47-
process.exit()
45+
handleError(error)
4846
}
4947
}
5048

storage/framework/core/cli/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function runCommand(command: string, options?: CliOptions): Promise
3636

3737
const opts: CliOptions = {
3838
...options,
39-
stdio: [options?.stdin ?? 'inherit', 'pipe', 'pipe'],
39+
stdio: options?.stdio ?? [options?.stdin ?? 'inherit', 'pipe', 'pipe'],
4040
verbose: options?.verbose ?? false,
4141
}
4242

storage/framework/core/types/src/cli.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ export interface CliOptions {
141141
*/
142142
cwd?: string
143143

144+
stdio?: [In, Out, Out]
145+
144146
/**
145147
* **stdio**
146148
*

0 commit comments

Comments
 (0)