Skip to content

Commit 1c53398

Browse files
committed
add documentDB flag for zone
1 parent 0350559 commit 1c53398

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/commands/database/connection-string.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { VAR_UNKNOWN } from 'consts/messages';
66
import { getDatabaseConnectionString } from 'services/database-service';
77
import { DynamicChoicesService } from 'services/dynamic-choices-service';
88
import { defaultVersionByAppId } from 'src/services/app-versions-service';
9-
import { chooseRegionIfNeeded, getRegionFromString } from 'src/utils/region';
9+
import { addRegionToFlags, chooseRegionIfNeeded, getRegionFromString } from 'src/utils/region';
1010
import { HttpError } from 'types/errors';
1111
import logger from 'utils/logger';
1212

@@ -15,12 +15,14 @@ export default class ConnectionString extends AuthenticatedCommand {
1515

1616
static examples = ['<%= config.bin %> <%= command.id %> -a APP_ID'];
1717

18-
static flags = ConnectionString.serializeFlags({
19-
appId: Flags.integer({
20-
char: 'a',
21-
description: 'Select the app that you wish to retrieve the connection string for',
18+
static flags = ConnectionString.serializeFlags(
19+
addRegionToFlags({
20+
appId: Flags.integer({
21+
char: 'a',
22+
description: 'Select the app that you wish to retrieve the connection string for',
23+
}),
2224
}),
23-
});
25+
);
2426

2527
public async run(): Promise<void> {
2628
const { flags } = await this.parse(ConnectionString);

0 commit comments

Comments
 (0)