mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
chore: add more comments
This commit is contained in:
parent
c720a25cf0
commit
8f9b855763
2 changed files with 38 additions and 10 deletions
|
@ -41,6 +41,18 @@ export class Cmd extends AdbCommandBase {
|
|||
this.#supportsAbbExec = adb.canUseFeature(AdbFeature.AbbExec);
|
||||
}
|
||||
|
||||
/**
|
||||
* Spawn a new `cmd` command. It will use ADB's `abb` command if available.
|
||||
*
|
||||
* @param shellProtocol
|
||||
* Whether to use shell protocol. If `true`, `stdout` and `stderr` will be separated.
|
||||
*
|
||||
* `cmd` doesn't use PTY, so even when shell protocol is used,
|
||||
* resizing terminal size and closing `stdin` are not supported.
|
||||
* @param command The command to run.
|
||||
* @param args The arguments to pass to the command.
|
||||
* @returns An `AdbSubprocessProtocol` that provides output streams.
|
||||
*/
|
||||
async spawn(
|
||||
shellProtocol: boolean,
|
||||
command: string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue