@catladder/cli 2.6.1 → 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.
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "2.6.1",
56
+ "version": "2.6.3",
57
57
  "scripts": {
58
58
  "lint": "eslint \"src/**/*.ts\"",
59
59
  "lint:fix": "eslint \"src/**/*.ts\" --fix",
@@ -14,7 +14,7 @@ export async function gitConfigGet(
14
14
  { location }: Pick<GitConfigOptions, "location"> = {},
15
15
  ) {
16
16
  const { stdout } = await exec(
17
- `git config get ${argsJoin([location ? `--${location}` : undefined])} ${key}`,
17
+ `git config --get ${argsJoin([location ? `--${location}` : undefined])} ${key}`,
18
18
  );
19
19
  return stdout.trim();
20
20
  }
@@ -25,7 +25,7 @@ export const gitConfigSet = (
25
25
  { location, comment }: GitConfigOptions = {},
26
26
  ) =>
27
27
  exec(
28
- `git config set ${argsJoin([
28
+ `git config --set ${argsJoin([
29
29
  location ? `--${location}` : undefined,
30
30
  comment ? `--comment=${comment}` : undefined,
31
31
  ])} ${key} ${value}`,
@@ -49,7 +49,7 @@ export const setPreference = async (key: string, value: string | number) => {
49
49
  [key]: value,
50
50
  };
51
51
 
52
- await writeFile(legacyPreferencesPath, stringify(newPreferences), {
52
+ await writeFile(preferencesPath, stringify(newPreferences), {
53
53
  encoding: "utf-8",
54
54
  mode: 0o600,
55
55
  });