1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.pullTask = void 0;
|
4 | const parse_pull_1 = require("../parsers/parse-pull");
|
5 | function 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 | }
|
18 | exports.pullTask = pullTask;
|
19 |
|
\ | No newline at end of file |