@catladder/cli 0.0.0-main-bcd7ed75 → 0.0.0-main-c2f81f59

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.
@@ -412,11 +412,11 @@ exports.gitConfigSet = exports.gitConfigGet = void 0;
412
412
  const child_process_promise_1 = __nccwpck_require__(5763);
413
413
  const argsJoin = (args) => args.filter(Boolean).join(" ");
414
414
  async function gitConfigGet(key, { location } = {}) {
415
- const { stdout } = await (0, child_process_promise_1.exec)(`git config get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
415
+ const { stdout } = await (0, child_process_promise_1.exec)(`git config --get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
416
416
  return stdout.trim();
417
417
  }
418
418
  exports.gitConfigGet = gitConfigGet;
419
- const gitConfigSet = (key, value, { location, comment } = {}) => (0, child_process_promise_1.exec)(`git config set ${argsJoin([
419
+ const gitConfigSet = (key, value, { location, comment } = {}) => (0, child_process_promise_1.exec)(`git config --set ${argsJoin([
420
420
  location ? `--${location}` : undefined,
421
421
  comment ? `--comment=${comment}` : undefined,
422
422
  ])} ${key} ${value}`);
@@ -2962,11 +2962,11 @@ exports.gitConfigSet = exports.gitConfigGet = void 0;
2962
2962
  const child_process_promise_1 = __nccwpck_require__(75763);
2963
2963
  const argsJoin = (args) => args.filter(Boolean).join(" ");
2964
2964
  async function gitConfigGet(key, { location } = {}) {
2965
- const { stdout } = await (0, child_process_promise_1.exec)(`git config get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
2965
+ const { stdout } = await (0, child_process_promise_1.exec)(`git config --get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
2966
2966
  return stdout.trim();
2967
2967
  }
2968
2968
  exports.gitConfigGet = gitConfigGet;
2969
- const gitConfigSet = (key, value, { location, comment } = {}) => (0, child_process_promise_1.exec)(`git config set ${argsJoin([
2969
+ const gitConfigSet = (key, value, { location, comment } = {}) => (0, child_process_promise_1.exec)(`git config --set ${argsJoin([
2970
2970
  location ? `--${location}` : undefined,
2971
2971
  comment ? `--comment=${comment}` : undefined,
2972
2972
  ])} ${key} ${value}`);
@@ -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,kBAAkB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,GAAG,EAAE,CAC9E,CAAC;IACF,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC;AARD,oCAQ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