refactor(cli): keep the retrying PATH command private to the idempotent write (#36237)

This commit is contained in:
Neil
2026-10-29 22:10:15 -07:00
committed by GitHub
parent 17828c78f1
commit 303cbbbb57
+2 -1
View File
@@ -26,7 +26,8 @@ export async function writeWindowsUserPath(value: string): Promise<void> {
])
}
export async function runWindowsPathCommand(args: string[]): Promise<string> {
// Private on purpose: its timeout retry is only safe for the idempotent PATH write above.
async function runWindowsPathCommand(args: string[]): Promise<string> {
const run = () =>
runProcess({ program: 'powershell', args, timeoutMs: WINDOWS_PATH_WRITE_TIMEOUT_MS })
let result = await run()