File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { VAR_UNKNOWN } from 'consts/messages';
66import { getDatabaseConnectionString } from 'services/database-service' ;
77import { DynamicChoicesService } from 'services/dynamic-choices-service' ;
88import { defaultVersionByAppId } from 'src/services/app-versions-service' ;
9- import { chooseRegionIfNeeded , getRegionFromString } from 'src/utils/region' ;
9+ import { addRegionToFlags , chooseRegionIfNeeded , getRegionFromString } from 'src/utils/region' ;
1010import { HttpError } from 'types/errors' ;
1111import 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 ) ;
You can’t perform that action at this time.
0 commit comments