UNPKG

hdckit

Version:

A pure Node.js client for the OpenHarmony Device Connector

15 lines (14 loc) 401 B
"use strict"; 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;