UNPKG

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