UNPKG

568 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.pullTask = void 0;
4const parse_pull_1 = require("../parsers/parse-pull");
5function pullTask(remote, branch, customArgs) {
6 const commands = ['pull', ...customArgs];
7 if (remote && branch) {
8 commands.splice(1, 0, remote, branch);
9 }
10 return {
11 commands,
12 format: 'utf-8',
13 parser(stdOut, stdErr) {
14 return parse_pull_1.parsePullResult(stdOut, stdErr);
15 }
16 };
17}
18exports.pullTask = pullTask;
19//# sourceMappingURL=pull.js.map
\No newline at end of file