@contentstack/cli-config 1.1.0 → 1.2.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Contentstack
3
+ Copyright (c) 2023 Contentstack
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-config
16
16
  $ csdx COMMAND
17
17
  running command...
18
18
  $ csdx (--version)
19
- @contentstack/cli-config/1.1.0 linux-x64 node-v16.19.0
19
+ @contentstack/cli-config/1.2.0 linux-x64 node-v16.19.1
20
20
  $ csdx --help [COMMAND]
21
21
  USAGE
22
22
  $ csdx COMMAND
@@ -53,6 +53,9 @@ Set region for CLI
53
53
  USAGE
54
54
  $ csdx config:set:region [REGION] [-d <value> -m <value> -n <value>]
55
55
 
56
+ ARGUMENTS
57
+ REGION Name for the region
58
+
56
59
  FLAGS
57
60
  -d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma and name flags are
58
61
  required
@@ -50,19 +50,19 @@ class RegionSetCommand extends cli_command_1.Command {
50
50
  exports.default = RegionSetCommand;
51
51
  RegionSetCommand.description = 'Set region for CLI';
52
52
  RegionSetCommand.flags = {
53
- cda: cli_command_1.flags.string({
53
+ cda: cli_utilities_1.flags.string({
54
54
  char: 'd',
55
55
  description: 'Custom host to set for content delivery API, if this flag is added then cma and name flags are required',
56
56
  dependsOn: ['cma', 'name'],
57
57
  parse: (0, cli_utilities_1.printFlagDeprecation)(['-d'], ['--cda']),
58
58
  }),
59
- cma: cli_command_1.flags.string({
59
+ cma: cli_utilities_1.flags.string({
60
60
  char: 'm',
61
61
  description: 'Custom host to set for content management API, , if this flag is added then cda and name flags are required',
62
62
  dependsOn: ['cda', 'name'],
63
63
  parse: (0, cli_utilities_1.printFlagDeprecation)(['-m'], ['--cma']),
64
64
  }),
65
- name: cli_command_1.flags.string({
65
+ name: cli_utilities_1.flags.string({
66
66
  char: 'n',
67
67
  description: 'Name for the region, if this flag is added then cda and cma flags are required',
68
68
  dependsOn: ['cda', 'cma'],
@@ -74,8 +74,6 @@ RegionSetCommand.examples = [
74
74
  '$ csdx config:set:region NA',
75
75
  '$ csdx config:set:region --cma <contentstack_cma_endpoint> --cda <contentstack_cda_endpoint> --name "India"',
76
76
  ];
77
- RegionSetCommand.args = [
78
- {
79
- name: 'region',
80
- },
81
- ];
77
+ RegionSetCommand.args = {
78
+ region: cli_utilities_1.args.string({ description: 'Name for the region' })
79
+ };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "commands": {
4
4
  "config:get:region": {
5
5
  "id": "config:get:region",
@@ -66,7 +66,8 @@
66
66
  },
67
67
  "args": {
68
68
  "region": {
69
- "name": "region"
69
+ "name": "region",
70
+ "description": "Name for the region"
70
71
  }
71
72
  }
72
73
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@contentstack/cli-config",
3
3
  "description": "Contentstack CLI plugin for configuration",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "author": "Contentstack",
6
6
  "scripts": {
7
7
  "build": "npm run clean && npm run compile",
8
- "clean": "rm -rf ./lib && rm -rf tsconfig.build.tsbuildinfo",
8
+ "clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo",
9
9
  "compile": "tsc -b tsconfig.json",
10
10
  "postpack": "rm -f oclif.manifest.json",
11
- "prepack": "npm run build && oclif manifest && oclif readme",
11
+ "prepack": "pnpm compile && oclif manifest && oclif readme",
12
12
  "version": "oclif readme && git add README.md",
13
13
  "test:report": "tsc -p test && nyc --reporter=lcov --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
14
14
  "pretest": "tsc -p test",
@@ -20,15 +20,14 @@
20
20
  "test:unit": "mocha --forbid-only \"test/unit/*.test.ts\" --unit-test"
21
21
  },
22
22
  "dependencies": {
23
- "@contentstack/cli-command": "^1.1.0",
24
- "@contentstack/cli-utilities": "^1.1.0",
23
+ "@contentstack/cli-command": "^1.2.0",
24
+ "@contentstack/cli-utilities": "^1.2.0",
25
25
  "chalk": "^4.0.0",
26
26
  "debug": "^4.1.1",
27
27
  "inquirer": "8.2.4",
28
28
  "winston": "^3.7.2"
29
29
  },
30
30
  "devDependencies": {
31
- "oclif": "^3.1.2",
32
31
  "@oclif/test": "^2.2.10",
33
32
  "@types/chai": "^4.2.18",
34
33
  "@types/inquirer": "^9.0.3",
@@ -36,14 +35,14 @@
36
35
  "@types/mocha": "^8.2.2",
37
36
  "@types/node": "^14.14.32",
38
37
  "@types/sinon": "^10.0.2",
39
- "@types/tar": "^4.0.3",
40
38
  "chai": "^4.3.4",
41
39
  "eslint": "^8.18.0",
42
- "eslint-config-oclif": "^3.1.0",
40
+ "eslint-config-oclif": "^4.0.0",
43
41
  "eslint-config-oclif-typescript": "^0.1.0",
44
42
  "globby": "^10.0.2",
45
43
  "mocha": "10.1.0",
46
44
  "nyc": "^15.1.0",
45
+ "oclif": "^3.1.2",
47
46
  "rimraf": "^2.7.1",
48
47
  "sinon": "^15.0.1",
49
48
  "tmp": "^0.2.1",
@@ -51,7 +50,7 @@
51
50
  "typescript": "^4.9.3"
52
51
  },
53
52
  "engines": {
54
- "node": ">=8.0.0"
53
+ "node": ">=14.0.0"
55
54
  },
56
55
  "files": [
57
56
  "/lib",