@u4/adbkit
Version:
A Typescript client for the Android Debug Bridge.
18 lines • 643 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = __importDefault(require("../../command"));
class ShellCommand extends command_1.default {
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();
}
}
exports.default = ShellCommand;
//# sourceMappingURL=shell.js.map