@contentstack/cli-config 1.6.0 → 1.6.2

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.0 linux-x64 node-v18.19.0
21
+ @contentstack/cli-config/1.6.2 linux-x64 node-v18.19.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -292,6 +292,8 @@ EXAMPLES
292
292
 
293
293
  $ csdx config:set:region AZURE-EU
294
294
 
295
+ $ csdx config:set:region GCP-NA
296
+
295
297
  $ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name "India"
296
298
  ```
297
299
 
@@ -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}`);
@@ -84,6 +84,7 @@ RegionSetCommand.examples = [
84
84
  '$ csdx config:set:region EU',
85
85
  '$ csdx config:set:region AZURE-NA',
86
86
  '$ csdx config:set:region AZURE-EU',
87
+ '$ csdx config:set:region GCP-NA',
87
88
  '$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name "India"',
88
89
  ];
89
90
  RegionSetCommand.args = {
@@ -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
  ],
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.0",
2
+ "version": "1.6.2",
3
3
  "commands": {
4
4
  "config:get:base-branch": {
5
5
  "id": "config:get:base-branch",
@@ -179,6 +179,7 @@
179
179
  "$ csdx config:set:region EU",
180
180
  "$ csdx config:set:region AZURE-NA",
181
181
  "$ csdx config:set:region AZURE-EU",
182
+ "$ csdx config:set:region GCP-NA",
182
183
  "$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --ui-host <contentstack_ui_host_endpoint> --name \"India\""
183
184
  ],
184
185
  "flags": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-config",
3
3
  "description": "Contentstack CLI plugin for configuration",
4
- "version": "1.6.0",
4
+ "version": "1.6.2",
5
5
  "author": "Contentstack",
6
6
  "scripts": {
7
7
  "build": "npm run clean && npm run compile",
@@ -31,7 +31,7 @@
31
31
  "winston": "^3.7.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@oclif/test": "^2.2.10",
34
+ "@oclif/test": "^2.5.6",
35
35
  "@types/chai": "^4.2.18",
36
36
  "@types/inquirer": "^9.0.3",
37
37
  "@types/mkdirp": "^1.0.1",