hdckit
Version:
A pure Node.js client for the OpenHarmony Device Connector
15 lines (14 loc) • 401 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const execa = require("execa");
class ExecCommand {
constructor(connectKey, bin = 'hdc') {
this.bin = bin;
this.connectKey = connectKey;
}
run(args, options = {}) {
args.unshift('-t', this.connectKey);
return execa(this.bin, args, options);
}
}
exports.default = ExecCommand;