@adinsure-ops/ops-cli 4.8.0 → 4.8.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/CHANGELOGS.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # Changelogs
2
2
 
3
- ## next
3
+ ## 4.8.2: 2023-07-28
4
4
 
5
- ## 4.8.0: 2023-06-01
5
+ - sql command can now generate a template for mssql and oracle, for extending an sql table with a column
6
+
7
+ ## 4.8.1: 2023-06-01
8
+
9
+ - Added --force option to login command, to forcefully replace the old auth token
10
+ - Added --retry option to publush command, to retry publishing a package multiple times in case of 4xx or 5xx http errors
11
+
12
+ ## 4.8.0: 2023-05-01
6
13
 
7
14
  - VERSION files now don't need to be trimmed (they can have leading or trailing whitespace characters) in order for commands to read it properly
8
15
  - Added two new commands (usage in README file):
package/README.md CHANGED
@@ -761,7 +761,7 @@ USAGE
761
761
  $ ops sql <type> <module> [flags]
762
762
 
763
763
  ARGUMENTS
764
- TYPE (Schema|Data|migration) Type of database scripts
764
+ TYPE (Schema|Data|Migration|Extend) Type of database scripts
765
765
  MODULE (acc|claims|core|pas|reins|shared) Module of data database scripts
766
766
 
767
767
  OPTIONS
@@ -771,11 +771,18 @@ OPTIONS
771
771
  -o, --offline generate database script with timestamp
772
772
  -v, --version=version version for which you're generating database script
773
773
 
774
+ // when using the Extend datascript type to add a new column (column-name, column-type) to the table (table-name in table-schema)
775
+ --table-schema table schema name
776
+ --table-name table name
777
+ --column-name new column's name
778
+ --column-type new column's type
779
+
774
780
  EXAMPLES
775
781
  $ ops sql schema
776
782
  $ ops sql data shared --layer basic
777
783
  $ ops sql data shared --major
778
784
  $ ops sql data shared --offline --description "this is script description"
785
+ $ ops sql Extend -v 22.0.0 -l basic --table-schema "Table_Shema" --table-name "Table_Name" --column-name "New_Column_Name" --column-type "NEWTYPE"
779
786
  ```
780
787
 
781
788
  > Note: version if not provided is taken from file `SQL_SCRIPTS_VERSION`, `PLATFORM_VERSION` or `VERSION` in order.
@@ -11,6 +11,7 @@ export default class Login extends CommandBase {
11
11
  secret: flags.IOptionFlag<string | undefined>;
12
12
  npm: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
13
13
  skipCI: flags.IOptionFlag<string | undefined>;
14
+ force: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
14
15
  };
15
16
  static responsePageContent: string;
16
17
  private readonly npmRegistries;
@@ -2,8 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const command_1 = require("@oclif/command");
4
4
  const chalk_1 = require("chalk");
5
+ const fs = require("fs");
5
6
  const http = require("http");
6
7
  const open = require("open");
8
+ const path = require("path");
7
9
  const url = require("url");
8
10
  const command_base_1 = require("../command.base");
9
11
  const npmrc_1 = require("../lib/npmrc");
@@ -43,7 +45,16 @@ class Login extends command_base_1.default {
43
45
  }
44
46
  async run() {
45
47
  const { flags } = this.parse(Login);
48
+ if (flags.force) {
49
+ fs.unlink(path.resolve(this.security.getTokenPath()), err => {
50
+ if (err) {
51
+ }
52
+ this.log(`${chalk_1.default.yellow('Note: We have launched a browser for you to login.')}`);
53
+ });
54
+ }
46
55
  if (flags.skipCI && process.env[flags.skipCI]) {
56
+ if (flags.force)
57
+ this.error(new Error('Cannot skip login as the force login flag has been set'));
47
58
  this.log(`${chalk_1.default.yellow('Note: skipping login because variables was set for CI')}`);
48
59
  return;
49
60
  }
@@ -108,47 +119,51 @@ Login.examples = [
108
119
  `$ ops login`,
109
120
  `$ ops login --npm`,
110
121
  `$ ops login --skipCi CI`,
111
- `$ ops login --deviceFlow`
122
+ `$ ops login --deviceFlow`,
112
123
  ];
113
124
  Login.flags = {
114
125
  servicePrincipal: command_1.flags.boolean({
115
126
  description: 'authenticate using service principal credentials',
116
- default: false
127
+ default: false,
117
128
  }),
118
129
  deviceFlow: command_1.flags.boolean({
119
130
  description: 'authenticate using device flow',
120
- default: false
131
+ default: false,
121
132
  }),
122
133
  clientId: command_1.flags.string({
123
134
  char: 'c',
124
135
  env: 'AZURE_CLIENT_ID',
125
- description: '[DEPRECATED] (application) client id'
136
+ description: '[DEPRECATED] (application) client id',
126
137
  }),
127
138
  secret: command_1.flags.string({
128
139
  char: 's',
129
140
  env: 'AZURE_CLIENT_SECRET',
130
- description: '[DEPRECATED] client secret'
141
+ description: '[DEPRECATED] client secret',
131
142
  }),
132
143
  npm: command_1.flags.boolean({
133
144
  description: 'register also for npm',
134
- default: false
145
+ default: false,
135
146
  }),
136
147
  skipCI: command_1.flags.string({
137
- description: 'Skip login if environment variables is set'
138
- })
148
+ description: 'Skip login if environment variables is set',
149
+ }),
150
+ force: command_1.flags.boolean({
151
+ description: 'Force a change of login token',
152
+ default: false,
153
+ }),
139
154
  };
140
155
  Login.responsePageContent = `
141
156
  <!DOCTYPE html>
142
157
  <html>
143
158
  <head>
144
159
  <title>ops-cli authenticate</title>
145
- <link rel="icon" href="data:;base64,iVBORw0KGgo=">
160
+ <link rel='icon' href='data:;base64,iVBORw0KGgo='>
146
161
  </head>
147
162
  <body>
148
163
  <p><strong>Your login was successful!</strong></p>
149
164
  <p>This page will automatically close after 10 seconds OR you can close it yourself immediately.</p>
150
- <script type="text/javascript">
151
- setTimeout("self.close()", 10000);
165
+ <script type='text/javascript'>
166
+ setTimeout('self.close()', 10000);
152
167
  </script>
153
168
  </body>
154
169
  </html>`;
@@ -10,13 +10,14 @@ export default class NpmPublish extends CommandBase {
10
10
  exclude: flags.IOptionFlag<string[]>;
11
11
  version: flags.IOptionFlag<string>;
12
12
  pat: flags.IOptionFlag<string | undefined>;
13
+ retry: import("@oclif/parser/lib/flags").IOptionFlag<number>;
13
14
  };
14
15
  private cp;
15
16
  publishPackage(pkg: NpmPackage, cmd?: string[]): Promise<{
16
17
  data: string;
17
18
  error: string;
18
19
  }>;
19
- checkPackageCanPublish(pkg: NpmPackage, allPackages: AzurePackageArray, version: string): Promise<boolean>;
20
- publishPackages(packages: NpmPackage[], allPackages: AzurePackageArray, version: string): Promise<void>;
20
+ checkPackageCanPublish(pkg: NpmPackage, allPackages: AzurePackageArray, version: string, retries: number): Promise<boolean>;
21
+ publishPackages(packages: NpmPackage[], allPackages: AzurePackageArray, version: string, retries: number): Promise<void>;
21
22
  run(): Promise<void>;
22
23
  }
@@ -66,7 +66,7 @@ class NpmPublish extends command_base_1.default {
66
66
  throw new Error(err.message);
67
67
  }
68
68
  }
69
- async checkPackageCanPublish(pkg, allPackages, version) {
69
+ async checkPackageCanPublish(pkg, allPackages, version, retries) {
70
70
  this.log('');
71
71
  cli_ux_1.default.action.start(`${pkg.name}@${pkg.version}`, undefined, { stdout: true });
72
72
  let matchedPackage = allPackages.value.find(azurePackage => azurePackage.name === pkg.name);
@@ -78,7 +78,22 @@ class NpmPublish extends command_base_1.default {
78
78
  if (!matchedPackage) {
79
79
  cli_ux_1.default.action.stop(`${chalk_1.default.green('new package')}`);
80
80
  cli_ux_1.default.action.start(`publish new package ${pkg.name}@${pkg.version} from ${pkg.jsonPath}`, undefined, { stdout: true });
81
- await this.publishPackage(pkg);
81
+ try {
82
+ await this.publishPackage(pkg);
83
+ }
84
+ catch (err) {
85
+ if (err instanceof Error && err.message.includes('subprocess error exit')) {
86
+ // Check if the error message contains 'subprocess error exit'
87
+ // Extract the HTTP status code from the error message
88
+ const statusCodeMatch = /\d{3}/.exec(err.message);
89
+ const statusCode = statusCodeMatch ? parseInt(statusCodeMatch[0], 10) : null;
90
+ if (statusCode && (statusCode >= 400 && statusCode < 600)) {
91
+ for (let i = 0; i < retries - 1; i++) {
92
+ await this.publishPackage(pkg);
93
+ }
94
+ }
95
+ }
96
+ }
82
97
  cli_ux_1.default.action.stop(`${chalk_1.default.green('done')}`);
83
98
  return true;
84
99
  }
@@ -94,13 +109,13 @@ class NpmPublish extends command_base_1.default {
94
109
  cli_ux_1.default.action.stop(`${chalk_1.default.blue('skipping')}`);
95
110
  return false;
96
111
  }
97
- async publishPackages(packages, allPackages, version) {
112
+ async publishPackages(packages, allPackages, version, retries) {
98
113
  let errorCount = 0;
99
114
  this.log(`publishing ${packages.length} packages:`);
100
115
  this.log(packages.map(pkg => pkg.name).toString());
101
116
  for (const pkg of packages) {
102
117
  try {
103
- await this.checkPackageCanPublish(pkg, allPackages, version);
118
+ await this.checkPackageCanPublish(pkg, allPackages, version, retries);
104
119
  }
105
120
  catch (err) {
106
121
  this.warn(err.message);
@@ -122,7 +137,7 @@ class NpmPublish extends command_base_1.default {
122
137
  cli_ux_1.default.action.start('Getting list of published packages', undefined, { stdout: true });
123
138
  const allPackages = JSON.parse(await npmContext.getAllNpmPackages(flags.pat));
124
139
  cli_ux_1.default.action.stop(`${chalk_1.default.green('done')}`);
125
- await this.publishPackages(packages, allPackages, flags.version);
140
+ await this.publishPackages(packages, allPackages, flags.version, flags.retry);
126
141
  cli_ux_1.default.action.stop('success');
127
142
  }
128
143
  catch (err) {
@@ -160,4 +175,8 @@ NpmPublish.flags = {
160
175
  description: 'PAT token or AZURE_DEVOPS_EXT_PAT environment variable',
161
176
  env: 'AZURE_DEVOPS_EXT_PAT'
162
177
  }),
178
+ retry: command_1.flags.integer({
179
+ description: 'Number of npm publishing retries in case of 4xx or 5xx http errors',
180
+ default: 3
181
+ }),
163
182
  };
@@ -15,6 +15,10 @@ export default class Sql extends CommandBase {
15
15
  offline: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
16
16
  description: flags.IOptionFlag<string | undefined>;
17
17
  major: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
18
+ 'table-schema': flags.IOptionFlag<string | undefined>;
19
+ 'table-name': flags.IOptionFlag<string | undefined>;
20
+ 'column-name': flags.IOptionFlag<string | undefined>;
21
+ 'column-type': flags.IOptionFlag<string | undefined>;
18
22
  };
19
23
  private readonly _moduleTypes;
20
24
  private readonly _dbmsType;
@@ -27,5 +31,8 @@ export default class Sql extends CommandBase {
27
31
  */
28
32
  getOfflineScriptId(version: string, description: string | undefined): Promise<string>;
29
33
  handleLayer(scriptDbmsFolder: string, scriptLayer: string, scriptType: string, dbmsFormat: string): Promise<string>;
34
+ sqlExtendScriptGeneration(table_schema: string | undefined, table_name: string | undefined, column_name: string | undefined, column_type: string | undefined): Promise<string>;
35
+ oradcExtendScriptGeneration(table_schema: string | undefined, table_name: string | undefined, column_name: string | undefined, column_type: string | undefined): Promise<string>;
36
+ checkExtendParameters(): Promise<string[]>;
30
37
  run(): Promise<void>;
31
38
  }
@@ -80,6 +80,53 @@ class Sql extends command_base_1.default {
80
80
  }
81
81
  return scriptFolder;
82
82
  }
83
+ async sqlExtendScriptGeneration(table_schema, table_name, column_name, column_type) {
84
+ return `if exists (select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA = '${table_schema}' and TABLE_NAME = '${table_name}')
85
+ begin
86
+ if not exists (select * from INFORMATION_SCHEMA.COLUMNS where TABLE_SCHEMA = '${table_schema}' and TABLE_NAME = '${table_name}' and COLUMN_NAME = '${column_name}')
87
+ begin
88
+ alter table ${table_schema}.${table_name} add ${column_name} ${column_type};
89
+ end
90
+ end`;
91
+ }
92
+ async oradcExtendScriptGeneration(table_schema, table_name, column_name, column_type) {
93
+ return `DECLARE
94
+ v_column_exists number := 0;
95
+ v_table_exists number := 0;
96
+ BEGIN
97
+ Select count(*) into v_table_exists
98
+ from ALL_TAB_COLS
99
+ where upper(OWNER) = '${table_schema}'
100
+ and upper(table_name) = '${table_name}';
101
+ if (v_table_exists > 0) then
102
+ select count(*) into v_column_exists
103
+ from ALL_TAB_COLS
104
+ where upper(OWNER) = ${table_schema}
105
+ and upper(table_name) = '${table_name}';
106
+ and upper(column_name) = '${column_name}'
107
+ if (v_column_exists = 0) then
108
+ execute immediate alter table ${table_schema}.${table_name} add ${column_name} ${column_type};
109
+ end if;
110
+ end if;
111
+ end;`;
112
+ }
113
+ async checkExtendParameters() {
114
+ const { flags } = this.parse(Sql);
115
+ const arrayOfParameters = [];
116
+ if (flags['table-schema'] === undefined) {
117
+ arrayOfParameters.push('table-scehma');
118
+ }
119
+ if (flags['table-name'] === undefined) {
120
+ arrayOfParameters.push('table-name');
121
+ }
122
+ if (flags['column-name'] === undefined) {
123
+ arrayOfParameters.push('column-name');
124
+ }
125
+ if (flags['column-type'] === undefined) {
126
+ arrayOfParameters.push('column-type');
127
+ }
128
+ return arrayOfParameters;
129
+ }
83
130
  async run() {
84
131
  var _a, _b;
85
132
  const { args, flags } = this.parse(Sql);
@@ -120,7 +167,7 @@ class Sql extends command_base_1.default {
120
167
  name: 'type',
121
168
  message: 'select a sql type',
122
169
  type: 'list',
123
- choices: [{ name: 'Schema' }, { name: 'Data' }, { name: 'migration' }],
170
+ choices: [{ name: 'Schema' }, { name: 'Data' }, { name: 'Migration' }, { name: 'Extend' }],
124
171
  }]);
125
172
  scriptType = responses.type;
126
173
  }
@@ -134,6 +181,11 @@ class Sql extends command_base_1.default {
134
181
  }]);
135
182
  scriptModule = responses.module;
136
183
  }
184
+ // If scriptType is Extend, then check input parameters
185
+ const arrayOfMissingParameters = await this.checkExtendParameters();
186
+ if (arrayOfMissingParameters.length !== 0) {
187
+ this.error(`The script type Extend requires the following parameters to be specified: ${arrayOfMissingParameters.join(', ')}`);
188
+ }
137
189
  let scriptLayer = flags.layer;
138
190
  this.log(`Generating on SQL script layer:'${scriptLayer}'`);
139
191
  let scriptsRootFolder = path.resolve(await this.getGitRoot(), 'database');
@@ -169,10 +221,30 @@ class Sql extends command_base_1.default {
169
221
  scriptId = await this.getScriptId(version.version);
170
222
  this.log(`Got: '${chalk_1.default.green(scriptId)}'`);
171
223
  }
172
- for (let scriptFolder of scriptFolderLocations) {
173
- let scriptsFilePath = path.resolve(scriptFolder, `${scriptId}.sql`);
174
- await fs.writeFile(scriptsFilePath, '');
175
- this.log(`${chalk_1.default.yellow(scriptsFilePath)}`);
224
+ // Check if the operation is Extend
225
+ if (scriptType === 'Extend') {
226
+ // The first file will always be in \sql\ folder for mssql
227
+ // and the second one will always be in \oradc\ for oracle db
228
+ let sql_or_oradc = 0;
229
+ for (let scriptFolder of scriptFolderLocations) {
230
+ let scriptsFilePath = path.resolve(scriptFolder, `${scriptId}.sql`);
231
+ // The values in flags such as table-schema, which are passed into the sql generation function can never be undefined as they
232
+ // are checked prior to executing this code, so the functions are defined in a way where they can intake an undefined parameter
233
+ // only due to typescript.
234
+ if (!sql_or_oradc)
235
+ await fs.writeFile(scriptsFilePath, await this.sqlExtendScriptGeneration(flags['table-schema'], flags['table-name'], flags['column-name'], flags['column-type']));
236
+ else
237
+ await fs.writeFile(scriptsFilePath, await this.oradcExtendScriptGeneration(flags['table-schema'], flags['table-name'], flags['column-name'], flags['column-type']));
238
+ this.log(`${chalk_1.default.yellow(scriptsFilePath)}`);
239
+ sql_or_oradc++;
240
+ }
241
+ }
242
+ else {
243
+ for (let scriptFolder of scriptFolderLocations) {
244
+ let scriptsFilePath = path.resolve(scriptFolder, `${scriptId}.sql`);
245
+ await fs.writeFile(scriptsFilePath, '');
246
+ this.log(`${chalk_1.default.yellow(scriptsFilePath)}`);
247
+ }
176
248
  }
177
249
  }
178
250
  }
@@ -189,7 +261,7 @@ Sql.args = [
189
261
  {
190
262
  name: 'type',
191
263
  description: 'Type of database scripts',
192
- options: ['Schema', 'Data', 'migration']
264
+ options: ['Schema', 'Data', 'Migration', 'Extend']
193
265
  },
194
266
  {
195
267
  name: 'module',
@@ -221,4 +293,17 @@ Sql.flags = {
221
293
  description: 'generate script for major version',
222
294
  default: false
223
295
  }),
296
+ // Used only for generating scripts to extend existing db tables with new column
297
+ 'table-schema': command_1.flags.string({
298
+ description: 'name of the existing table schema',
299
+ }),
300
+ 'table-name': command_1.flags.string({
301
+ description: 'name of the existing table',
302
+ }),
303
+ 'column-name': command_1.flags.string({
304
+ description: 'name the new column to be added',
305
+ }),
306
+ 'column-type': command_1.flags.string({
307
+ description: 'type of the new column to be added',
308
+ }),
224
309
  };
@@ -21,6 +21,10 @@ export default class SecurityContext {
21
21
  * @param configDir Directory where CLI configuration is stored
22
22
  */
23
23
  constructor(configDir: string);
24
+ /**
25
+ * Get the accessTokenPath, as it is a private variable
26
+ */
27
+ getTokenPath(): string;
24
28
  /**
25
29
  * Contacts authority server, fetches and saves the authentication token to be used in subsequent requests.
26
30
  *
@@ -35,6 +35,12 @@ class SecurityContext {
35
35
  }
36
36
  });
37
37
  }
38
+ /**
39
+ * Get the accessTokenPath, as it is a private variable
40
+ */
41
+ getTokenPath() {
42
+ return this._accessTokenPath;
43
+ }
38
44
  /**
39
45
  * Contacts authority server, fetches and saves the authentication token to be used in subsequent requests.
40
46
  *
@@ -1 +1 @@
1
- {"version":"4.8.0","commands":{"doctor":{"id":"doctor","description":"check if everything is installed","usage":"doctor","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops doctor"],"flags":{"fix":{"name":"fix","type":"boolean","char":"p","description":"try to install missing packages","allowNo":false}},"args":[]},"login":{"id":"login","description":"log in to use ops services","usage":"login","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops login","$ ops login --npm","$ ops login --skipCi CI","$ ops login --deviceFlow"],"flags":{"servicePrincipal":{"name":"servicePrincipal","type":"boolean","description":"authenticate using service principal credentials","allowNo":false},"deviceFlow":{"name":"deviceFlow","type":"boolean","description":"authenticate using device flow","allowNo":false},"clientId":{"name":"clientId","type":"option","char":"c","description":"[DEPRECATED] (application) client id"},"secret":{"name":"secret","type":"option","char":"s","description":"[DEPRECATED] client secret"},"npm":{"name":"npm","type":"boolean","description":"register also for npm","allowNo":false},"skipCI":{"name":"skipCI","type":"option","description":"Skip login if environment variables is set"}},"args":[]},"prepare-content":{"id":"prepare-content","description":"copies files as described in .opsprepare which is at root of source directory","usage":"prepare-content -d <destination> [-s <source>]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops prepare-content -d .\\my_workspace","$ ops prepare-content -d .\\my_workspace -s .\\my_repository","$ ops prepare-content -d C:\\git\\my_workspace","$ ops prepare-content -d C:\\git\\my_workspace -s C:\\git\\my_repository\\my_repository"],"flags":{"destination":{"name":"destination","type":"option","char":"d","description":"where to copy the workspace files","required":true},"source":{"name":"source","type":"option","char":"s","description":"[optional] source directory, default: current dir","required":false,"default":"."}},"args":[]},"sql":{"id":"sql","description":"creates a new database script","usage":"sql <type> <module> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops sql schema ","$ ops sql data shared --layer basic","$ ops sql data shared --major","$ ops sql data shared --offline --description \"this is script description\""],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating database script"},"layer":{"name":"layer","type":"option","char":"l","description":"name of the configuration layer for which you are generating database script"},"offline":{"name":"offline","type":"boolean","char":"o","description":"generate database script with timestamp","allowNo":false},"description":{"name":"description","type":"option","char":"d","description":"description of script to be used in filename for offline"},"major":{"name":"major","type":"boolean","char":"m","description":"generate script for major version","allowNo":false}},"args":[{"name":"type","description":"Type of database scripts","options":["Schema","Data","migration"]},{"name":"module","description":"Module of data database scripts","options":["acc","claims","core","pas","reins","shared"]}]},"translate":{"id":"translate","description":"downloads translate from AdDictionary service","usage":"translate <language> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f json -m \"Client business accounting;Client business base;\"","$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f xml -o translationDestination"],"flags":{"format":{"name":"format","type":"option","char":"f","description":"translations format [xml - server translations, json - client translations]","required":true,"options":["json","xml"]},"module":{"name":"module","type":"option","char":"m","description":"module name you want to download. Values must be semi-colon (;) separated."},"output":{"name":"output","type":"option","char":"o","description":"absolute or relative destination path to a folder where translations are extracted.","default":"."},"filename":{"name":"filename","type":"option","description":"specify filename of output (XML only)."},"respectServerFilename":{"name":"respectServerFilename","type":"boolean","description":"respect filename that is returned from AdDictionary server (XML only).","allowNo":false}},"args":[{"name":"language","description":"language id you want to download. Values must be semi-colon (;) separated.","required":true}]},"version":{"id":"version","description":"release new version","usage":"version <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops version patch","$ ops version prerelease -i","$ ops version new -v 3.4.3"],"flags":{"independent":{"name":"independent","type":"boolean","char":"i","description":"increment npm packages independent of VERSION file","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"force version"},"script-prefix":{"name":"script-prefix","type":"option","description":"prefix for db script version creation. (default: 7.10)","default":"7.10"},"no-deps":{"name":"no-deps","type":"boolean","description":"skip dependency update","allowNo":false},"no-script":{"name":"no-script","type":"boolean","description":"skip creation of script","allowNo":false},"only-npm-packages":{"name":"only-npm-packages","type":"option","description":"regular expression for which NPM packages to include","default":".*"},"exclude-dir":{"name":"exclude-dir","type":"option","description":"exclude directories where to search for package.json"}},"args":[{"name":"type","description":"Type of release","required":true,"options":["patch","minor","major","prerelease","preminor","premajor","new"]}]},"docker:update-image-version":{"id":"docker:update-image-version","description":"update docker image version docker compose file","usage":"docker:update-image-version <tag>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops docker:update-image-version 17.0.0 --service server client"],"flags":{"services":{"name":"services","type":"option","description":"list of services to update","required":true},"file-path":{"name":"file-path","type":"option","description":"list of services to update","default":"./docker-compose.yml"}},"args":[{"name":"version","description":"version","required":true}]},"download:client":{"id":"download:client","description":"download AdInsure Client zip from Azure storage","usage":"download:client <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:client -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:identity-server":{"id":"download:identity-server","description":"download AdInsure Identity Server zip from Azure storage","usage":"download:identity-server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:identity-server -v 3.0.3 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:jmeter":{"id":"download:jmeter","description":"download jmeter examples from Azure storage","usage":"download:jmeter-examples <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:jmeter-examples -o ~/Downloads"],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:keycloak-scim":{"id":"download:keycloak-scim","description":"download Keycloak-scim from Azure storage","usage":"download:keycloak-scim <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:keycloak-scim -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:platform":{"id":"download:platform","description":"download AdInsure Platform bundle containing zip of Client, Server and IdentityServer from azure storage","usage":"download <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["download"],"examples":["$ ops download -v 6.0.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:scheduler":{"id":"download:scheduler","description":"download AdInsure Scheduler zip from azure storage","usage":"download:scheduler <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:scheduler -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:server":{"id":"download:server","description":"download AdInsure Server zip from Azure storage","usage":"download:server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:server -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:signalr":{"id":"download:signalr","description":"download AdInsure SignalR Server zip from Azure storage","usage":"download:signalr <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:signalr -v 18.0.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:studio":{"id":"download:studio","description":"download AdInsure Studio vsix from azure storage","usage":"download:studio <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:studio -v 15.0.0 -o ~/Downloads","$ ops download:studio -v 15.0.0 -i","$ ops download:studio -v 15.0.0 -i -s"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"},"install":{"name":"install","type":"boolean","char":"i","description":"install plugin to vscode. save to temp folder and remove vsix after.","allowNo":false},"skip":{"name":"skip","type":"boolean","char":"s","description":"only with install. If passed, and desired version is installed it will skip it.","allowNo":false}},"args":[]},"gitlab:get-tag-pipeline":{"id":"gitlab:get-tag-pipeline","description":"get pipeline status for tag","usage":"gitlab:get-tag-pipeline <tag>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:get-tag-pipeline 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"wait":{"name":"wait","type":"boolean","description":"Wait for pipeline to finish","allowNo":false},"timeout":{"name":"timeout","type":"option","description":"Timeout for wait command in seconds (defaults to 120 seconds)","default":"120"},"delay":{"name":"delay","type":"option","description":"Delay of check in seconds (defaults to 5 seconds)","default":"5"}},"args":[{"name":"tag","description":"Tag","required":true}]},"gitlab:next-nightly-tag":{"id":"gitlab:next-nightly-tag","description":"creates new gitlab tag","usage":"gitlab:next-nightly-tag <version>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:next-nightly-tag 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"reference":{"name":"reference","type":"option","description":"Reference to create tag on (branch, commit, tag)","required":true},"outputVersionOnly":{"name":"outputVersionOnly","type":"boolean","description":"output only version instead of pretty output","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","description":"Only printout version and don't create it","allowNo":false}},"args":[{"name":"version","description":"Tag version"}]},"jira:issue":{"id":"jira:issue","description":"get Jira issue","usage":"jira:issue <issue>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:issue LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"jira:labels":{"id":"jira:labels","description":"list or edit labels on Jira issue","usage":"jira:labels <issue> -a [label] -r [label]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:labels LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"},"add":{"name":"add","type":"option","char":"a","description":"add label"},"remove":{"name":"remove","type":"option","char":"r","description":"remove label"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"log:add":{"id":"log:add","description":"creates a new changelog entry","usage":"log <issue> -t [type] -c [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log","log:add"],"examples":["$ ops log LJADIRD-1234 -t feature","$ ops log LJADIRD-5678 -t fixed","$ ops log LJADIRD-8765 -t breaking -c Platform","$ ops log LJADIRD-4321 -t improve -c Configuration"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of changelog","options":["feature","fixed","improve","breaking"]},"component":{"name":"component","type":"option","char":"c","description":"Component for which new changelog should be generated","default":""}},"args":[{"name":"issue","description":"Jira issue number"}]},"log:generate":{"id":"log:generate","description":"generates final changelog from unreleased notes","usage":"log:gen [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:gen"],"examples":["$ ops log:gen","$ ops log:gen -p","$ ops log:gen -c Platform","$ ops log:gen -c Platform,Configuration","$ ops log:gen -c Implementation -f CHANGELOG.Implementation.md"],"flags":{"components":{"name":"components","type":"option","char":"c","description":"components separated by comma (,) to process for final changelog","default":""},"file":{"name":"file","type":"option","char":"f","description":"file to update with new changelogs","default":"CHANGELOG.md"},"force":{"name":"force","type":"boolean","description":"update target file without prompting for confirmation","allowNo":false},"preview":{"name":"preview","type":"boolean","char":"p","description":"generates a preview markdown of current unreleased changelogs","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating changelogs"},"ignore-no-changelogs":{"name":"ignore-no-changelogs","type":"boolean","description":"generate final changelog even if no unreleased changelogs exist","allowNo":false}},"args":[]},"log:validate":{"id":"log:validate","description":"validates formatting of all unreleased changelogs","usage":"log:validate [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:validate"],"examples":["$ ops log:validate"],"flags":{},"args":[]},"npm:check-publish":{"id":"npm:check-publish","description":"check if npm packages were published","usage":"npm:check-publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:check-publish -v 6.0.1","$ ops npm:check-publish -p @adinsure/* -v 6.0.0","$ ops npm:check-publish -p @adinsure/* -x @adisure/demo -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"}},"args":[]},"npm:dependency-update":{"id":"npm:dependency-update","description":"update npm dependencies per package filter","usage":"npm:dependency-update <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:dependency-update 3.4.3 --filter @adinsure/*"],"flags":{"filter":{"name":"filter","type":"option","description":"regular expression for which NPM packages to update","required":true},"exclude":{"name":"exclude","type":"option","description":"exclude directories where to search for package.json"},"force":{"name":"force","type":"boolean","description":"force update of version regardless of lower vs higher version check","allowNo":false}},"args":[{"name":"version","description":"Type of release","required":true}]},"npm:publish":{"id":"npm:publish","description":"Publish npm packages","usage":"npm:publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:publish -v 15.0.0","$ ops npm:publish -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -x @adisure-tooling/studio-services -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"}},"args":[]},"nuget:dependency-update":{"id":"nuget:dependency-update","description":"update nuget dependencies per package filter","usage":"nuget:dependency-update <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops nuget:dependency-update 3.4.3 --filter Adacta.AdInsure --exclude Scheduler"],"flags":{"filter":{"name":"filter","type":"option","description":"regular expression for which NuGet packages to update","required":true},"exclude":{"name":"exclude","type":"option","description":"exclude directories where to search for csproj files"}},"args":[{"name":"version","description":"Type of release","required":true}]}}}
1
+ {"version":"4.8.2","commands":{"doctor":{"id":"doctor","description":"check if everything is installed","usage":"doctor","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops doctor"],"flags":{"fix":{"name":"fix","type":"boolean","char":"p","description":"try to install missing packages","allowNo":false}},"args":[]},"login":{"id":"login","description":"log in to use ops services","usage":"login","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops login","$ ops login --npm","$ ops login --skipCi CI","$ ops login --deviceFlow"],"flags":{"servicePrincipal":{"name":"servicePrincipal","type":"boolean","description":"authenticate using service principal credentials","allowNo":false},"deviceFlow":{"name":"deviceFlow","type":"boolean","description":"authenticate using device flow","allowNo":false},"clientId":{"name":"clientId","type":"option","char":"c","description":"[DEPRECATED] (application) client id"},"secret":{"name":"secret","type":"option","char":"s","description":"[DEPRECATED] client secret"},"npm":{"name":"npm","type":"boolean","description":"register also for npm","allowNo":false},"skipCI":{"name":"skipCI","type":"option","description":"Skip login if environment variables is set"},"force":{"name":"force","type":"boolean","description":"Force a change of login token","allowNo":false}},"args":[]},"prepare-content":{"id":"prepare-content","description":"copies files as described in .opsprepare which is at root of source directory","usage":"prepare-content -d <destination> [-s <source>]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops prepare-content -d .\\my_workspace","$ ops prepare-content -d .\\my_workspace -s .\\my_repository","$ ops prepare-content -d C:\\git\\my_workspace","$ ops prepare-content -d C:\\git\\my_workspace -s C:\\git\\my_repository\\my_repository"],"flags":{"destination":{"name":"destination","type":"option","char":"d","description":"where to copy the workspace files","required":true},"source":{"name":"source","type":"option","char":"s","description":"[optional] source directory, default: current dir","required":false,"default":"."}},"args":[]},"sql":{"id":"sql","description":"creates a new database script","usage":"sql <type> <module> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops sql schema ","$ ops sql data shared --layer basic","$ ops sql data shared --major","$ ops sql data shared --offline --description \"this is script description\""],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating database script"},"layer":{"name":"layer","type":"option","char":"l","description":"name of the configuration layer for which you are generating database script"},"offline":{"name":"offline","type":"boolean","char":"o","description":"generate database script with timestamp","allowNo":false},"description":{"name":"description","type":"option","char":"d","description":"description of script to be used in filename for offline"},"major":{"name":"major","type":"boolean","char":"m","description":"generate script for major version","allowNo":false},"table-schema":{"name":"table-schema","type":"option","description":"name of the existing table schema"},"table-name":{"name":"table-name","type":"option","description":"name of the existing table"},"column-name":{"name":"column-name","type":"option","description":"name the new column to be added"},"column-type":{"name":"column-type","type":"option","description":"type of the new column to be added"}},"args":[{"name":"type","description":"Type of database scripts","options":["Schema","Data","Migration","Extend"]},{"name":"module","description":"Module of data database scripts","options":["acc","claims","core","pas","reins","shared"]}]},"translate":{"id":"translate","description":"downloads translate from AdDictionary service","usage":"translate <language> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f json -m \"Client business accounting;Client business base;\"","$ ops translate \"en-US=en-US;ru-Ru=ru-RU\" -f xml -o translationDestination"],"flags":{"format":{"name":"format","type":"option","char":"f","description":"translations format [xml - server translations, json - client translations]","required":true,"options":["json","xml"]},"module":{"name":"module","type":"option","char":"m","description":"module name you want to download. Values must be semi-colon (;) separated."},"output":{"name":"output","type":"option","char":"o","description":"absolute or relative destination path to a folder where translations are extracted.","default":"."},"filename":{"name":"filename","type":"option","description":"specify filename of output (XML only)."},"respectServerFilename":{"name":"respectServerFilename","type":"boolean","description":"respect filename that is returned from AdDictionary server (XML only).","allowNo":false}},"args":[{"name":"language","description":"language id you want to download. Values must be semi-colon (;) separated.","required":true}]},"version":{"id":"version","description":"release new version","usage":"version <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops version patch","$ ops version prerelease -i","$ ops version new -v 3.4.3"],"flags":{"independent":{"name":"independent","type":"boolean","char":"i","description":"increment npm packages independent of VERSION file","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"force version"},"script-prefix":{"name":"script-prefix","type":"option","description":"prefix for db script version creation. (default: 7.10)","default":"7.10"},"no-deps":{"name":"no-deps","type":"boolean","description":"skip dependency update","allowNo":false},"no-script":{"name":"no-script","type":"boolean","description":"skip creation of script","allowNo":false},"only-npm-packages":{"name":"only-npm-packages","type":"option","description":"regular expression for which NPM packages to include","default":".*"},"exclude-dir":{"name":"exclude-dir","type":"option","description":"exclude directories where to search for package.json"}},"args":[{"name":"type","description":"Type of release","required":true,"options":["patch","minor","major","prerelease","preminor","premajor","new"]}]},"docker:update-image-version":{"id":"docker:update-image-version","description":"update docker image version docker compose file","usage":"docker:update-image-version <tag>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops docker:update-image-version 17.0.0 --service server client"],"flags":{"services":{"name":"services","type":"option","description":"list of services to update","required":true},"file-path":{"name":"file-path","type":"option","description":"list of services to update","default":"./docker-compose.yml"}},"args":[{"name":"version","description":"version","required":true}]},"download:client":{"id":"download:client","description":"download AdInsure Client zip from Azure storage","usage":"download:client <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:client -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:identity-server":{"id":"download:identity-server","description":"download AdInsure Identity Server zip from Azure storage","usage":"download:identity-server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:identity-server -v 3.0.3 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:jmeter":{"id":"download:jmeter","description":"download jmeter examples from Azure storage","usage":"download:jmeter-examples <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:jmeter-examples -o ~/Downloads"],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:keycloak-scim":{"id":"download:keycloak-scim","description":"download Keycloak-scim from Azure storage","usage":"download:keycloak-scim <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:keycloak-scim -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:platform":{"id":"download:platform","description":"download AdInsure Platform bundle containing zip of Client, Server and IdentityServer from azure storage","usage":"download <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["download"],"examples":["$ ops download -v 6.0.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:scheduler":{"id":"download:scheduler","description":"download AdInsure Scheduler zip from azure storage","usage":"download:scheduler <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:scheduler -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:server":{"id":"download:server","description":"download AdInsure Server zip from Azure storage","usage":"download:server <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:server -v 3.2.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:signalr":{"id":"download:signalr","description":"download AdInsure SignalR Server zip from Azure storage","usage":"download:signalr <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:signalr -v 18.0.0 -o ~/Downloads"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"}},"args":[]},"download:studio":{"id":"download:studio","description":"download AdInsure Studio vsix from azure storage","usage":"download:studio <flags>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops download:studio -v 15.0.0 -o ~/Downloads","$ ops download:studio -v 15.0.0 -i","$ ops download:studio -v 15.0.0 -i -s"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"version we want to download","required":true},"output":{"name":"output","type":"option","char":"o","description":"output directory","default":"./"},"install":{"name":"install","type":"boolean","char":"i","description":"install plugin to vscode. save to temp folder and remove vsix after.","allowNo":false},"skip":{"name":"skip","type":"boolean","char":"s","description":"only with install. If passed, and desired version is installed it will skip it.","allowNo":false}},"args":[]},"gitlab:get-tag-pipeline":{"id":"gitlab:get-tag-pipeline","description":"get pipeline status for tag","usage":"gitlab:get-tag-pipeline <tag>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:get-tag-pipeline 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"wait":{"name":"wait","type":"boolean","description":"Wait for pipeline to finish","allowNo":false},"timeout":{"name":"timeout","type":"option","description":"Timeout for wait command in seconds (defaults to 120 seconds)","default":"120"},"delay":{"name":"delay","type":"option","description":"Delay of check in seconds (defaults to 5 seconds)","default":"5"}},"args":[{"name":"tag","description":"Tag","required":true}]},"gitlab:next-nightly-tag":{"id":"gitlab:next-nightly-tag","description":"creates new gitlab tag","usage":"gitlab:next-nightly-tag <version>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops gitlab:next-nightly-tag 17.0.0"],"flags":{"pat":{"name":"pat","type":"option","description":"Token from user that has permissions to list and create tags","required":true},"host":{"name":"host","type":"option","description":"Server hostname","required":true,"default":"https://git.adacta-fintech.com"},"project":{"name":"project","type":"option","description":"Project ID","required":true,"default":"413"},"reference":{"name":"reference","type":"option","description":"Reference to create tag on (branch, commit, tag)","required":true},"outputVersionOnly":{"name":"outputVersionOnly","type":"boolean","description":"output only version instead of pretty output","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","description":"Only printout version and don't create it","allowNo":false}},"args":[{"name":"version","description":"Tag version"}]},"jira:issue":{"id":"jira:issue","description":"get Jira issue","usage":"jira:issue <issue>","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:issue LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"jira:labels":{"id":"jira:labels","description":"list or edit labels on Jira issue","usage":"jira:labels <issue> -a [label] -r [label]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops jira:labels LJADIRD-1337"],"flags":{"username":{"name":"username","type":"option","description":"jira username","required":true},"password":{"name":"password","type":"option","description":"jira password","required":true},"hostname":{"name":"hostname","type":"option","description":"jira hostname","default":"https://jira.adacta-fintech.com"},"add":{"name":"add","type":"option","char":"a","description":"add label"},"remove":{"name":"remove","type":"option","char":"r","description":"remove label"}},"args":[{"name":"issue","description":"Jira issue number","required":true}]},"log:add":{"id":"log:add","description":"creates a new changelog entry","usage":"log <issue> -t [type] -c [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log","log:add"],"examples":["$ ops log LJADIRD-1234 -t feature","$ ops log LJADIRD-5678 -t fixed","$ ops log LJADIRD-8765 -t breaking -c Platform","$ ops log LJADIRD-4321 -t improve -c Configuration"],"flags":{"type":{"name":"type","type":"option","char":"t","description":"type of changelog","options":["feature","fixed","improve","breaking"]},"component":{"name":"component","type":"option","char":"c","description":"Component for which new changelog should be generated","default":""}},"args":[{"name":"issue","description":"Jira issue number"}]},"log:generate":{"id":"log:generate","description":"generates final changelog from unreleased notes","usage":"log:gen [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:gen"],"examples":["$ ops log:gen","$ ops log:gen -p","$ ops log:gen -c Platform","$ ops log:gen -c Platform,Configuration","$ ops log:gen -c Implementation -f CHANGELOG.Implementation.md"],"flags":{"components":{"name":"components","type":"option","char":"c","description":"components separated by comma (,) to process for final changelog","default":""},"file":{"name":"file","type":"option","char":"f","description":"file to update with new changelogs","default":"CHANGELOG.md"},"force":{"name":"force","type":"boolean","description":"update target file without prompting for confirmation","allowNo":false},"preview":{"name":"preview","type":"boolean","char":"p","description":"generates a preview markdown of current unreleased changelogs","allowNo":false},"version":{"name":"version","type":"option","char":"v","description":"version for which you're generating changelogs"},"ignore-no-changelogs":{"name":"ignore-no-changelogs","type":"boolean","description":"generate final changelog even if no unreleased changelogs exist","allowNo":false}},"args":[]},"log:validate":{"id":"log:validate","description":"validates formatting of all unreleased changelogs","usage":"log:validate [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":["log:validate"],"examples":["$ ops log:validate"],"flags":{},"args":[]},"npm:check-publish":{"id":"npm:check-publish","description":"check if npm packages were published","usage":"npm:check-publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:check-publish -v 6.0.1","$ ops npm:check-publish -p @adinsure/* -v 6.0.0","$ ops npm:check-publish -p @adinsure/* -x @adisure/demo -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"}},"args":[]},"npm:dependency-update":{"id":"npm:dependency-update","description":"update npm dependencies per package filter","usage":"npm:dependency-update <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:dependency-update 3.4.3 --filter @adinsure/*"],"flags":{"filter":{"name":"filter","type":"option","description":"regular expression for which NPM packages to update","required":true},"exclude":{"name":"exclude","type":"option","description":"exclude directories where to search for package.json"},"force":{"name":"force","type":"boolean","description":"force update of version regardless of lower vs higher version check","allowNo":false}},"args":[{"name":"version","description":"Type of release","required":true}]},"npm:publish":{"id":"npm:publish","description":"Publish npm packages","usage":"npm:publish [options]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops npm:publish -v 15.0.0","$ ops npm:publish -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -v 15.0.0","$ ops npm:publish -p @adinsure-tooling/* -x @adisure-tooling/studio-services -v 6.0.0"],"flags":{"package":{"name":"package","type":"option","char":"p","description":"package name filter you want to check"},"exclude":{"name":"exclude","type":"option","char":"x","description":"exclude packages from filter"},"version":{"name":"version","type":"option","char":"v","description":"version we want to check if published","required":true},"pat":{"name":"pat","type":"option","description":"PAT token or AZURE_DEVOPS_EXT_PAT environment variable"},"retry":{"name":"retry","type":"option","description":"Number of npm publishing retries in case of 4xx or 5xx http errors","default":3}},"args":[]},"nuget:dependency-update":{"id":"nuget:dependency-update","description":"update nuget dependencies per package filter","usage":"nuget:dependency-update <type> [flags]","pluginName":"@adinsure-ops/ops-cli","pluginType":"core","aliases":[],"examples":["$ ops nuget:dependency-update 3.4.3 --filter Adacta.AdInsure --exclude Scheduler"],"flags":{"filter":{"name":"filter","type":"option","description":"regular expression for which NuGet packages to update","required":true},"exclude":{"name":"exclude","type":"option","description":"exclude directories where to search for csproj files"}},"args":[{"name":"version","description":"Type of release","required":true}]}}}
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": "4.8.0",
4
+ "version": "4.8.2",
5
5
  "author": "Adacta Digital Service Department",
6
6
  "bin": {
7
7
  "ops": "./bin/run"