Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeingold35 committed Sep 17, 2024
1 parent dc8534e commit 7bd1f38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/sf-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ export class SfCli {
const cp = cspawn.spawn('sf', ['-v']);

cp.on('close', code => {
console.log(`isSfCliInstalled got close event, code is ${code}`);
// If the exit code is 0, then SF or SFDX is present.
// Otherwise, it's not.
res(code === 0);
});

cp.on('exit', code => {
console.log(`isSfCliInstalled got exit event, code is ${code}`);
res(code === 0);
})
});
}

Expand Down

0 comments on commit 7bd1f38

Please sign in to comment.