@catladder/cli 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,11 +4,11 @@ exports.gitConfigSet = exports.gitConfigGet = void 0;
|
|
|
4
4
|
const child_process_promise_1 = require("child-process-promise");
|
|
5
5
|
const argsJoin = (args) => args.filter(Boolean).join(" ");
|
|
6
6
|
async function gitConfigGet(key, { location } = {}) {
|
|
7
|
-
const { stdout } = await (0, child_process_promise_1.exec)(`git config get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
|
|
7
|
+
const { stdout } = await (0, child_process_promise_1.exec)(`git config --get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
|
|
8
8
|
return stdout.trim();
|
|
9
9
|
}
|
|
10
10
|
exports.gitConfigGet = gitConfigGet;
|
|
11
|
-
const gitConfigSet = (key, value, { location, comment } = {}) => (0, child_process_promise_1.exec)(`git config set ${argsJoin([
|
|
11
|
+
const gitConfigSet = (key, value, { location, comment } = {}) => (0, child_process_promise_1.exec)(`git config --set ${argsJoin([
|
|
12
12
|
location ? `--${location}` : undefined,
|
|
13
13
|
comment ? `--comment=${comment}` : undefined,
|
|
14
14
|
])} ${key} ${value}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitConfig.js","sourceRoot":"","sources":["../../../../src/git/gitConfig.ts"],"names":[],"mappings":";;;AAAA,iEAA6C;AAQ7C,MAAM,QAAQ,GAAG,CAAC,IAA4B,EAAU,EAAE,CACxD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE1B,KAAK,UAAU,YAAY,CAChC,GAAW,EACX,EAAE,QAAQ,KAAyC,EAAE;IAErD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,4BAAI,EAC3B,
|
|
1
|
+
{"version":3,"file":"gitConfig.js","sourceRoot":"","sources":["../../../../src/git/gitConfig.ts"],"names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