UNPKG

gapi-cli

Version:

Gapi command line interface

16 lines (15 loc) 373 B
import { Service } from 'typedi'; import { exec } from 'shelljs'; @Service() export class ExecService { call(command: string, options?) { return new Promise((resolve, reject) => { exec(command, options, (e) => { if (e) { reject(e); } resolve(); }); }); } }