@u4/adbkit
Version:
A Typescript client for the Android Debug Bridge.
12 lines • 379 B
JavaScript
import Command from '../../command.js';
export default class ShellCommand extends Command {
async execute(command) {
if (Array.isArray(command)) {
command = command.map(this.escape).join(' ');
}
await this._send(`shell:${command}`);
await this.readOKAY();
return this.parser.raw();
}
}
//# sourceMappingURL=shell.js.map