Skip to content

Commit 188a7b5

Browse files
committed
inherit stdio
1 parent a3586fa commit 188a7b5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44570,6 +44570,7 @@ class Cargo {
4457044570
await (0, util_1.spawnAsync)('cargo', args, {
4457144571
...options,
4457244572
shell: 'powershell.exe',
44573+
stdio: 'inherit',
4457344574
});
4457444575
}
4457544576
else {

dist/src/cargo.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ export declare class Cargo {
2626
* @param useBinstall Use cargo-binstall if true
2727
*/
2828
static install(program: string, version?: string, cachePrefix?: string, useBinstall?: boolean): Promise<void>;
29-
static exec(args: string[], options?: actionexec.ExecOptions): Promise<void>;
29+
static exec(args: string[], options?: Omit<actionexec.ExecOptions, 'stdio'>): Promise<void>;
3030
}

src/cargo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,14 @@ export class Cargo {
165165
// Executes a cargo command with given arguments
166166
public static async exec(
167167
args: string[],
168-
options?: actionexec.ExecOptions,
168+
options?: Omit<actionexec.ExecOptions, 'stdio'>,
169169
): Promise<void> {
170170
if (platform() === 'win32') {
171171
// On Windows, we have to use powershell because otherwise env vars are not recignized by cargo
172172
await spawnAsync('cargo', args, {
173173
...options,
174174
shell: 'powershell.exe',
175+
stdio: 'inherit',
175176
});
176177
} else {
177178
await actionexec.exec('cargo', args, {

0 commit comments

Comments
 (0)