@contentstack/cli-config 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-config/1.6.
|
|
21
|
+
@contentstack/cli-config/1.6.1 linux-x64 node-v18.19.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -40,7 +40,7 @@ class RegionSetCommand extends base_command_1.BaseCommand {
|
|
|
40
40
|
cli_utilities_1.cliux.error(`Failed to set region due to: ${error.message}`);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
else if (['NA', 'EU', 'AZURE-NA', 'AZURE-EU'].includes(selectedRegion)) {
|
|
43
|
+
else if (['NA', 'EU', 'AZURE-NA', 'AZURE-EU', 'GCP-NA'].includes(selectedRegion)) {
|
|
44
44
|
const regionDetails = utils_1.regionHandler.setRegion(selectedRegion);
|
|
45
45
|
await cli_utilities_1.authHandler.setConfigData('logout'); //Todo: Handle this logout flow well through logout command call
|
|
46
46
|
cli_utilities_1.cliux.success(`Region has been set to ${regionDetails.name}`);
|
package/lib/utils/interactive.js
CHANGED
|
@@ -12,6 +12,7 @@ const askRegions = async () => {
|
|
|
12
12
|
{ name: 'EU', value: 'EU' },
|
|
13
13
|
{ name: 'AZURE-NA', value: 'AZURE-NA' },
|
|
14
14
|
{ name: 'AZURE-EU', value: 'AZURE-EU' },
|
|
15
|
+
{ name: 'GCP-NA', value: 'GCP-NA' },
|
|
15
16
|
{ name: 'Custom', value: 'custom' },
|
|
16
17
|
{ name: 'exit', value: 'exit' },
|
|
17
18
|
],
|
package/oclif.manifest.json
CHANGED