UNPKG

simple-git

Version:

Simple GIT interface for node.js

29 lines 787 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ConfigList_1 = require("../responses/ConfigList"); function addConfigTask(key, value, append = false) { const commands = ['config', '--local']; if (append) { commands.push('--add'); } commands.push(key, value); return { commands, format: 'utf-8', parser(text) { return text; } }; } exports.addConfigTask = addConfigTask; function listConfigTask() { return { commands: ['config', '--list', '--show-origin', '--null'], format: 'utf-8', parser(text) { return ConfigList_1.configListParser(text); }, }; } exports.listConfigTask = listConfigTask; //# sourceMappingURL=config.js.map