@adinsure-ops/ops-cli 5.0.0-rc4 → 5.0.0-rc5

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/CHANGELOGS.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelogs
2
2
 
3
+
4
+ ## 5.0.0-rc5: 2023-09-08
5
+
6
+ - Added --description flag to the log command
7
+
3
8
  ## 5.0.0-rc4: 2023-09-05
4
9
 
5
10
  - Added --keep flag to the download:studio command
package/README.md CHANGED
@@ -333,6 +333,7 @@ ARGUMENTS
333
333
  OPTIONS
334
334
  -c, --component=component Component for which new changelog should be generated
335
335
  -t, --type=feature|fixed|improve|breaking (required) type of changelog
336
+ -d, --description=description Description of a changelog
336
337
 
337
338
  ALIASES
338
339
  $ ops log
@@ -342,6 +343,7 @@ EXAMPLES
342
343
  $ ops log LJADIRD-1234 -t feature
343
344
  $ ops log LJADIRD-5678 -t fixed
344
345
  $ ops log LJADIRD-8765 -t breaking -c Platform
346
+ $ ops log LJADIRD-5678 -t fixed -d "Fixed my bug"
345
347
  $ ops log LJADIRD-4321 -t improve -c Configuration
346
348
  ```
347
349
 
@@ -10,6 +10,7 @@ export default class Changelog extends CommandBase<typeof Changelog> {
10
10
  static flags: {
11
11
  type: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
12
  component: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
+ description: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
14
  };
14
15
  run(): Promise<void>;
15
16
  }
@@ -54,7 +54,7 @@ class Changelog extends CommandBase {
54
54
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
55
55
  const responses = yield inquirer.prompt([{
56
56
  name: 'component',
57
- message: 'Multiple components found. Select a changelog componet',
57
+ message: 'Multiple components found. Select a changelog component',
58
58
  type: 'list',
59
59
  choices: possibleComponents,
60
60
  }]);
@@ -75,7 +75,7 @@ class Changelog extends CommandBase {
75
75
  issue: changelogIssue,
76
76
  type: changelogType,
77
77
  },
78
- content: 'Explain your changes here',
78
+ content: flags.description || 'Explain your changes here',
79
79
  };
80
80
  yield fs.writeFile(changelogPath, matter.stringify(entry.content, entry.meta));
81
81
  this.log(`Created changelog for ${changelogIssue} in '${changelogPath}'`);
@@ -108,5 +108,10 @@ Changelog.flags = {
108
108
  description: 'Component for which new changelog should be generated',
109
109
  default: '',
110
110
  }),
111
+ description: Flags.string({
112
+ char: 'd',
113
+ description: 'Description of a changelog',
114
+ default: '',
115
+ }),
111
116
  };
112
117
  export default Changelog;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.0.0-rc4",
2
+ "version": "5.0.0-rc5",
3
3
  "commands": {
4
4
  "doctor": {
5
5
  "id": "doctor",
@@ -952,6 +952,14 @@
952
952
  "description": "Component for which new changelog should be generated",
953
953
  "multiple": false,
954
954
  "default": ""
955
+ },
956
+ "description": {
957
+ "name": "description",
958
+ "type": "option",
959
+ "char": "d",
960
+ "description": "Description of a changelog",
961
+ "multiple": false,
962
+ "default": ""
955
963
  }
956
964
  },
957
965
  "args": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adinsure-ops/ops-cli",
3
3
  "description": "Operations CLI for working with AdInsure",
4
- "version": "5.0.0-rc4",
4
+ "version": "5.0.0-rc5",
5
5
  "author": "Adacta Digital Service Department",
6
6
  "bin": {
7
7
  "ops": "./bin/run.js"