Skip to content

Commit

Permalink
fix: silent execs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Feb 12, 2021
1 parent f0dc0d2 commit 54a7aa9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/hubAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export const authFromStubbedHome = (homeDir: string): void => {
shell.exec(
`sfdx auth:jwt:grant -d -u ${process.env.TESTKIT_HUB_USERNAME} -i ${
process.env.TESTKIT_JWT_CLIENT_ID
} -f ${jwtKey} -r ${process.env.TESTKIT_HUB_INSTANCE || 'https://login.salesforce.com'}`
} -f ${jwtKey} -r ${process.env.TESTKIT_HUB_INSTANCE || 'https://login.salesforce.com'}`,
{ silent: true }
);
return;
}
Expand All @@ -39,7 +40,7 @@ export const authFromStubbedHome = (homeDir: string): void => {
const tmpUrl = path.join(homeDir, 'tmpUrl');
fs.writeFileSync(tmpUrl, process.env.TESTKIT_AUTH_URL);

const shellOutput = shell.exec(`sfdx auth:sfdxurl:store -d -f ${tmpUrl}`);
const shellOutput = shell.exec(`sfdx auth:sfdxurl:store -d -f ${tmpUrl}`, { silent: true });
logger(shellOutput);

return;
Expand Down Expand Up @@ -82,7 +83,9 @@ export const transferExistingAuthToEnv = (): void => {
// this is a org from web:auth or auth:url. Generate the authUrl and set in the env
logger('copying variables to env from org:display for AuthUrl');
const displayContents = JSON.parse(
shell.exec(`sfdx force:org:display -u ${process.env.TESTKIT_HUB_USERNAME} --verbose --json`) as string
shell.exec(`sfdx force:org:display -u ${process.env.TESTKIT_HUB_USERNAME} --verbose --json`, {
silent: true,
}) as string
) as OrgDisplayResult;
logger(`found ${displayContents.result.sfdxAuthUrl}`);

Expand Down

0 comments on commit 54a7aa9

Please sign in to comment.