UNPKG

hdckit

Version:

A pure Node.js client for the OpenHarmony Device Connector

14 lines (13 loc) 461 B
"use strict"; 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) { this.send(`shell ${command}`); return this.connection; } } exports.default = ShellCommand;