Skip to content

Commit dc78881

Browse files
authored
pass -y to our wrapped calls to npx in CLI (#822)
1 parent cf6c861 commit dc78881

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

serving/bin/modern-web.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function main() {
104104
}
105105
}
106106
} else if (command === "install") {
107-
const installArgs = `skills add GoogleChrome/modern-web-guidance ${values.choose ? "" : "--skill modern-web-guidance"}`
107+
const installArgs = `-y skills add GoogleChrome/modern-web-guidance ${values.choose ? "" : "--skill modern-web-guidance"}`
108108
.split(" ")
109109
.filter(Boolean);
110110

@@ -117,7 +117,7 @@ async function main() {
117117
process.exit(result.status ?? 0);
118118
} else if (command === "update") {
119119
const skills = getOurCLIAdjacentSkillIDs();
120-
const result = spawnSync("npx", ["skills", "update", ...skills], {
120+
const result = spawnSync("npx", ["-y", "skills", "update", ...skills], {
121121
stdio: "inherit",
122122
shell: process.platform === "win32",
123123
});

0 commit comments

Comments
 (0)