mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 17:59:50 +02:00
feat(bin): use cmd
in settings
This commit is contained in:
parent
9b0e06cdfb
commit
e3bfd1592f
8 changed files with 1490 additions and 1495 deletions
|
@ -108,15 +108,15 @@ export class AdbSubprocess extends AdbCommandBase {
|
|||
command: string | string[],
|
||||
options?: Partial<AdbSubprocessOptions>
|
||||
): Promise<AdbSubprocessWaitResult> {
|
||||
const shell = await this.spawn(command, options);
|
||||
const process = await this.spawn(command, options);
|
||||
|
||||
const stdout = new GatherStringStream();
|
||||
const stderr = new GatherStringStream();
|
||||
|
||||
const [, , exitCode] = await Promise.all([
|
||||
shell.stdout.pipeThrough(new DecodeUtf8Stream()).pipeTo(stdout),
|
||||
shell.stderr.pipeThrough(new DecodeUtf8Stream()).pipeTo(stderr),
|
||||
shell.exit,
|
||||
process.stdout.pipeThrough(new DecodeUtf8Stream()).pipeTo(stdout),
|
||||
process.stderr.pipeThrough(new DecodeUtf8Stream()).pipeTo(stderr),
|
||||
process.exit,
|
||||
]);
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue