2019-01-15 04:06:06 +07:00
|
|
|
import { CP } from "@coder/protocol";
|
2019-01-15 03:58:34 +07:00
|
|
|
import { client } from "./client";
|
2019-01-31 04:40:01 +07:00
|
|
|
import { promisify } from "./util";
|
2019-01-15 03:58:34 +07:00
|
|
|
|
2019-01-31 04:40:01 +07:00
|
|
|
const cp = new CP(client);
|
|
|
|
|
|
|
|
// tslint:disable-next-line no-any makes util.promisify return an object
|
|
|
|
(cp as any).exec[promisify.customPromisifyArgs] = ["stdout", "stderr"];
|
|
|
|
|
|
|
|
export = cp;
|