Skip to content

Commit

Permalink
fix(orginfodisplayer): fix commands used in org info displayer
Browse files Browse the repository at this point in the history
Fix help commands used in org info displayer
  • Loading branch information
alanjaouen authored Feb 9, 2024
1 parent 8925c10 commit 8a2a19d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/sfp-cli/src/ui/OrgInfoDisplayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ export default class OrgInfoDisplayer {
LoggerLevel.INFO,
);
SFPLogger.log(
COLOR_TRACE(`cat ${scratchOrg.sfdxAuthUrl} > ./authfile`),
COLOR_TRACE(`echo ${scratchOrg.sfdxAuthUrl} > ./authfile`),
LoggerLevel.INFO,
);
SFPLogger.log(
COLOR_TRACE(`sfdx auth sfdxurl store --sfdxurlfile authfile`),
COLOR_TRACE(`sf org login sfdx-url --sfdx-url-file=authfile`),
LoggerLevel.INFO,
);
SFPLogger.log(
COLOR_TRACE(`sfdx force org open --u ${scratchOrg.username}`),
COLOR_TRACE(`sf org open --target-org=${scratchOrg.username}`),
LoggerLevel.INFO,
);

SFPLogger.printHeaderLine('', COLOR_HEADER, LoggerLevel.INFO);




groupSection.end();
Expand Down Expand Up @@ -93,11 +93,11 @@ export default class OrgInfoDisplayer {

fileOutputHandler.appendOutput(pathToMarkDownFile,
`\n\nYou may use the following commands to authenticate to the org`,);
fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``);
fileOutputHandler.appendOutput(pathToMarkDownFile, `cat ${scratchOrg.sfdxAuthUrl} > ./authfile`);
fileOutputHandler.appendOutput(pathToMarkDownFile, `sfdx auth sfdxurl store --sfdxurlfile authfile`);
fileOutputHandler.appendOutput(pathToMarkDownFile, `sfdx force org open --u ${scratchOrg.username}`);
fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``);
fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``);
fileOutputHandler.appendOutput(pathToMarkDownFile, `echo ${scratchOrg.sfdxAuthUrl} > ./authfile`);
fileOutputHandler.appendOutput(pathToMarkDownFile, `sf org login sfdx-url --sfdx-url-file=authfile`);
fileOutputHandler.appendOutput(pathToMarkDownFile, `sf org open --target-org=${scratchOrg.username}`);
fileOutputHandler.appendOutput(pathToMarkDownFile, `\`\`\``);

}

Expand Down Expand Up @@ -153,4 +153,4 @@ export default class OrgInfoDisplayer {

}

}
}

0 comments on commit 8a2a19d

Please sign in to comment.