`Command.string` might be swallowing the output
could
Command.stringCommand.string be swallowing the output here? const run: Effect.Effect<void> = Effect.gen(function* () {
yield* feedback.logDebug('Starting C compiler test...')
// 1. Create a command to run gcc
const command = Command.make('gcc', '-v')
// 2. Run the command and capture output
const result = yield* Command.string(command)
// 3. Log the output using debug
yield* feedback.logDebug(`GCC Output: ${result}`)
}).pipe(
Effect.provide(NodeContext.layer),
Effect.catchAll((error) =>
feedback.logError(`Failed to run gcc: ${error}`)
)
) const run: Effect.Effect<void> = Effect.gen(function* () {
yield* feedback.logDebug('Starting C compiler test...')
// 1. Create a command to run gcc
const command = Command.make('gcc', '-v')
// 2. Run the command and capture output
const result = yield* Command.string(command)
// 3. Log the output using debug
yield* feedback.logDebug(`GCC Output: ${result}`)
}).pipe(
Effect.provide(NodeContext.layer),
Effect.catchAll((error) =>
feedback.logError(`Failed to run gcc: ${error}`)
)
)18:22:58 [DEBUG] Starting C compiler test...
18:22:58 [DEBUG] GCC Output: 18:22:58 [DEBUG] Starting C compiler test...
18:22:58 [DEBUG] GCC Output: 