Skip to content

Commit

Permalink
feat: set QA apihost
Browse files Browse the repository at this point in the history
  • Loading branch information
vegeris committed Jun 17, 2024
1 parent 893b836 commit d368a8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/cli-test/src/cli/cli-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface SlackCLIGlobalOptions {
*/
dev?: boolean;
/**
* @description Whether the command should interact with dev.slack (`--slackdev`)
* @description Whether the command should interact with qa.slack (`--apihost qa.slack.com`)
*/
qa?: boolean;
/**
Expand Down Expand Up @@ -87,7 +87,10 @@ export class SlackCLIProcess {
let cmd = `${process.env.SLACK_CLI_PATH}`;
if (this.globalOptions) {
const opts = this.globalOptions;
if (opts.qa || opts.dev) {
if (opts.qa) {
cmd += ' --apihost qa.slack.com';
}
if (opts.dev) {
cmd += ' --slackdev';
}
if (opts.skipUpdate || opts.skipUpdate === undefined) {
Expand Down

0 comments on commit d368a8a

Please sign in to comment.