Skip to content

Commit e19db0a

Browse files
committed
fix: settings not being quoted when called
1 parent 9251d0a commit e19db0a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "default",
3-
"version": "1.10.0",
3+
"version": "1.11.0-beta.2",
44
"description": "Default plugin for Codify - provides 50+ declarative resources for managing development tools and system configuration across macOS and Linux",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/github-cli/github-cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class GithubCliResource extends Resource<GithubCliConfig> {
124124
const $ = getPty();
125125
const ghKey = CONFIG_KEY_MAP[pc.name as keyof GithubCliConfig];
126126
if (ghKey !== undefined && pc.newValue !== undefined) {
127-
await $.spawn(`gh config set ${ghKey} ${pc.newValue}`);
127+
await $.spawn(`gh config set ${ghKey} "${pc.newValue}"`);
128128
}
129129
}
130130

@@ -137,7 +137,7 @@ export class GithubCliResource extends Resource<GithubCliConfig> {
137137
for (const [key, ghKey] of Object.entries(CONFIG_KEY_MAP) as Array<[keyof GithubCliConfig, string]>) {
138138
const value = config[key];
139139
if (value !== undefined) {
140-
await $.spawn(`gh config set ${ghKey} ${value}`);
140+
await $.spawn(`gh config set ${ghKey} "${value}"`);
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)