@adinsure-ops/ops-cli 4.6.0 → 4.8.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/CHANGELOGS.md +16 -0
- package/README.md +112 -89
- package/lib/command.base.js +1 -1
- package/lib/commands/download/client.js +0 -1
- package/lib/commands/download/jmeter.d.ts +13 -0
- package/lib/commands/download/jmeter.js +66 -0
- package/lib/commands/download/keycloak-scim.d.ts +14 -0
- package/lib/commands/download/keycloak-scim.js +71 -0
- package/lib/commands/download/signalr.d.ts +17 -0
- package/lib/commands/download/signalr.js +75 -0
- package/lib/commands/download/studio.js +2 -2
- package/lib/commands/prepare-content.js +2 -2
- package/lib/commands/translate.js +6 -6
- package/oclif.manifest.json +1 -1
- package/package.json +27 -21
package/CHANGELOGS.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelogs
|
|
2
2
|
|
|
3
|
+
## next
|
|
4
|
+
|
|
5
|
+
## 4.8.0: 2023-06-01
|
|
6
|
+
|
|
7
|
+
- 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
|
+
- Added two new commands (usage in README file):
|
|
9
|
+
- download:jmeter-examples
|
|
10
|
+
- download:keycloak-scim
|
|
11
|
+
|
|
12
|
+
## 4.7.0: 2023-03-22
|
|
13
|
+
|
|
14
|
+
- fixed bug in `download:studio` when flag `-i` was always required in case we used `-o` flag
|
|
15
|
+
- download of signalr is now also supported
|
|
16
|
+
- improved description for download topic, it now displays information on downloading individual components
|
|
17
|
+
- update command is no longer supported. Instead the update available warning provides information on available update options
|
|
18
|
+
|
|
3
19
|
## 4.6.0: 2023-02-15
|
|
4
20
|
|
|
5
21
|
- doctor no longer checks for `vsts-npm-auth` package
|
package/README.md
CHANGED
|
@@ -26,35 +26,37 @@ You can run and debug commands directly from terminal by running `ops [command]`
|
|
|
26
26
|
## Commands
|
|
27
27
|
|
|
28
28
|
<!-- commands -->
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
- [`ops help [COMMAND]`](##ops-help-command)
|
|
30
|
+
- [`ops doctor`](##ops-doctor)
|
|
31
|
+
- [`ops download:client <flags>`](##ops-download:client-<flags>)
|
|
32
|
+
- [`ops download:identity-server <flags>`](##ops-download:identity-server-<flags>)
|
|
33
|
+
- [`ops download:platform <flags>`](##ops-download:platform-<flags>)
|
|
34
|
+
- [`ops download:scheduler <flags>`](##ops-download:scheduler-<flags>)
|
|
35
|
+
- [`ops download:server <flags>`](##ops-download:server-<flags>)
|
|
36
|
+
- [`ops download:signalr <flags>`](##ops-download:signalr-<flags>)
|
|
37
|
+
- [`ops download:studio <flags>`](##ops-download:studio-<flags>)
|
|
38
|
+
- [`ops download:keycloak-scim <flags>`](##ops-download:keycloak-scim-<flags>)
|
|
39
|
+
- [`ops download:jmeter-examples <flags>`](##ops-download:studio-<flags>)
|
|
40
|
+
- [`ops gitlab:get-tag-pipeline`](##ops-gitlab:get-tag-pipeline)
|
|
41
|
+
- [`ops gitlab:next-nightly-tag`](##ops-gitlab:next-nightly-tag)
|
|
42
|
+
- [`ops log <component> <issue> [options]`](##ops-log-<component>-<issue>-[options])
|
|
43
|
+
- [`ops log:gen [options]`](##ops-log:gen-[options])
|
|
44
|
+
- [`ops log:validate [options]`](##ops-log:validate-[options])
|
|
45
|
+
- [`ops login`](##ops-login)
|
|
46
|
+
- [`ops npm:check-publish`](##ops-npm:check-publish)
|
|
47
|
+
- [`ops npm:publish`](##ops-npm:publish)
|
|
48
|
+
- [`ops npm:dependency-update`](##ops-npm:dependency-update)
|
|
49
|
+
- [`ops nuget:dependency-update`](##ops-nuget:dependency-update)
|
|
50
|
+
- [`ops prepare-content`](##ops-prepare-content)
|
|
51
|
+
- [`ops sql <type> <module> [flags]`](##ops-sql-<type>-<module>-[flags])
|
|
52
|
+
- [`ops translate`](##ops-translate)
|
|
53
|
+
- [`ops version <type> [flags]`](##ops-version-<type>[flags])
|
|
52
54
|
|
|
53
55
|
## `ops help [COMMAND]`
|
|
54
56
|
|
|
55
57
|
display help for ops
|
|
56
58
|
|
|
57
|
-
```
|
|
59
|
+
```txt
|
|
58
60
|
USAGE
|
|
59
61
|
$ ops help [COMMAND]
|
|
60
62
|
|
|
@@ -67,12 +69,11 @@ OPTIONS
|
|
|
67
69
|
|
|
68
70
|
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.0/src\commands\help.ts)_
|
|
69
71
|
|
|
70
|
-
|
|
71
72
|
## `ops doctor`
|
|
72
73
|
|
|
73
74
|
check if everyting is installed
|
|
74
75
|
|
|
75
|
-
```
|
|
76
|
+
```txt
|
|
76
77
|
USAGE
|
|
77
78
|
$ ops doctor
|
|
78
79
|
|
|
@@ -87,7 +88,7 @@ EXAMPLE
|
|
|
87
88
|
|
|
88
89
|
download AdInsure Client zip from Azure storage
|
|
89
90
|
|
|
90
|
-
```
|
|
91
|
+
```txt
|
|
91
92
|
USAGE
|
|
92
93
|
$ ops download:client <flags>
|
|
93
94
|
|
|
@@ -103,7 +104,7 @@ EXAMPLE
|
|
|
103
104
|
|
|
104
105
|
download AdInsure Identity Server zip from Azure storage
|
|
105
106
|
|
|
106
|
-
```
|
|
107
|
+
```txt
|
|
107
108
|
USAGE
|
|
108
109
|
$ ops download:identity-server <flags>
|
|
109
110
|
|
|
@@ -117,9 +118,9 @@ EXAMPLE
|
|
|
117
118
|
|
|
118
119
|
## `ops download:platform <flags>`
|
|
119
120
|
|
|
120
|
-
download AdInsure Platform bundle containing zip of Client, Server and
|
|
121
|
+
download AdInsure Platform bundle containing zip of Client, Server IdentityServer and SignalR from azure storage
|
|
121
122
|
|
|
122
|
-
```
|
|
123
|
+
```txt
|
|
123
124
|
USAGE
|
|
124
125
|
$ ops download <flags>
|
|
125
126
|
|
|
@@ -138,7 +139,7 @@ EXAMPLE
|
|
|
138
139
|
|
|
139
140
|
download AdInsure Scheduler zip from azure storage
|
|
140
141
|
|
|
141
|
-
```
|
|
142
|
+
```txt
|
|
142
143
|
USAGE
|
|
143
144
|
$ ops download:scheduler <flags>
|
|
144
145
|
|
|
@@ -154,7 +155,7 @@ EXAMPLE
|
|
|
154
155
|
|
|
155
156
|
download AdInsure Server zip from Azure storage
|
|
156
157
|
|
|
157
|
-
```
|
|
158
|
+
```txt
|
|
158
159
|
USAGE
|
|
159
160
|
$ ops download:server <flags>
|
|
160
161
|
|
|
@@ -166,47 +167,79 @@ EXAMPLE
|
|
|
166
167
|
$ ops download:server -v 3.2.0 -o ~/Downloads
|
|
167
168
|
```
|
|
168
169
|
|
|
170
|
+
## `ops download:signalr <flags>`
|
|
171
|
+
|
|
172
|
+
download AdInsure SignalR zip from Azure storage
|
|
173
|
+
|
|
174
|
+
```txt
|
|
175
|
+
USAGE
|
|
176
|
+
$ ops download:signalr <flags>
|
|
177
|
+
|
|
178
|
+
OPTIONS
|
|
179
|
+
-o, --output=output [default: ./] output directory
|
|
180
|
+
-v, --version=version (required) version we want to download
|
|
181
|
+
|
|
182
|
+
EXAMPLE
|
|
183
|
+
$ ops download:signalr -v 18.0.0 -o ~/Downloads
|
|
184
|
+
```
|
|
185
|
+
|
|
169
186
|
## `ops download:studio <flags>`
|
|
170
187
|
|
|
171
188
|
download AdInsure Studio vsix from azure storage
|
|
172
189
|
|
|
173
|
-
```
|
|
190
|
+
```txt
|
|
174
191
|
USAGE
|
|
175
192
|
$ ops download:studio <flags>
|
|
176
193
|
|
|
177
194
|
OPTIONS
|
|
178
195
|
-i, --install install plugin to vscode. save to temp folder and remove vsix after.
|
|
179
196
|
-o, --output=output [default: ./] output directory
|
|
197
|
+
-s, --skip only with install. If passed, and desired version is installed it will skip it.
|
|
180
198
|
-v, --version=version (required) version we want to download
|
|
181
199
|
|
|
182
200
|
EXAMPLES
|
|
183
201
|
$ ops download:studio -v 15.0.0 -o ~/Downloads
|
|
184
202
|
$ ops download:studio -v 15.0.0 -i
|
|
203
|
+
$ ops download:studio -v 15.0.0 -i -s
|
|
185
204
|
```
|
|
186
205
|
|
|
187
|
-
## `ops download:
|
|
206
|
+
## `ops download:keycloak-scim <flags>`
|
|
188
207
|
|
|
189
|
-
|
|
208
|
+
Download the Keycloak scim zip for AdInsure server
|
|
190
209
|
|
|
191
|
-
```
|
|
210
|
+
```txt
|
|
192
211
|
USAGE
|
|
193
|
-
$ ops download:
|
|
212
|
+
$ ops download:keycloak-scim <flags>
|
|
194
213
|
|
|
195
214
|
OPTIONS
|
|
196
|
-
-i, --install install plugin to vscode. save to temp folder and remove vsix after.
|
|
197
215
|
-o, --output=output [default: ./] output directory
|
|
198
216
|
-v, --version=version (required) version we want to download
|
|
199
217
|
|
|
200
218
|
EXAMPLES
|
|
201
|
-
$ ops download:
|
|
202
|
-
$ ops download:
|
|
219
|
+
$ ops download:keycloak-scim -v 3.2.0 -o ~/Downloads
|
|
220
|
+
$ ops download:keycloak-scim -v 3.0.0
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## `ops download:jmeter-examples <flags>`
|
|
224
|
+
|
|
225
|
+
Download the Jmeter examples zip
|
|
226
|
+
|
|
227
|
+
```txt
|
|
228
|
+
USAGE
|
|
229
|
+
$ ops download:jmeter-examples <flags>
|
|
230
|
+
|
|
231
|
+
OPTIONS
|
|
232
|
+
-o, --output=output [default: ./] output directory
|
|
233
|
+
|
|
234
|
+
EXAMPLES
|
|
235
|
+
$ ops download:jmeter-examples -o ~/Downloads
|
|
203
236
|
```
|
|
204
237
|
|
|
205
238
|
## `ops gitlab:get-tag-pipeline`
|
|
206
239
|
|
|
207
240
|
get pipeline status for tag
|
|
208
241
|
|
|
209
|
-
```
|
|
242
|
+
```txt
|
|
210
243
|
USAGE
|
|
211
244
|
$ ops gitlab:get-tag-pipeline <tag>
|
|
212
245
|
|
|
@@ -226,7 +259,7 @@ OPTIONS
|
|
|
226
259
|
|
|
227
260
|
creates new gitlab tag
|
|
228
261
|
|
|
229
|
-
```
|
|
262
|
+
```txt
|
|
230
263
|
USAGE
|
|
231
264
|
$ ops gitlab:next-nightly-tag <version>
|
|
232
265
|
|
|
@@ -245,7 +278,7 @@ OPTIONS
|
|
|
245
278
|
|
|
246
279
|
get Jira issue
|
|
247
280
|
|
|
248
|
-
```
|
|
281
|
+
```txt
|
|
249
282
|
USAGE
|
|
250
283
|
$ ops jira:issue <issue>
|
|
251
284
|
|
|
@@ -265,7 +298,7 @@ EXAMPLE
|
|
|
265
298
|
|
|
266
299
|
list or edit labels on Jira issue
|
|
267
300
|
|
|
268
|
-
```
|
|
301
|
+
```txt
|
|
269
302
|
USAGE
|
|
270
303
|
$ ops jira:labels <issue> -a [label] -r [label]
|
|
271
304
|
|
|
@@ -287,7 +320,7 @@ EXAMPLE
|
|
|
287
320
|
|
|
288
321
|
creates a new changelog entry
|
|
289
322
|
|
|
290
|
-
```
|
|
323
|
+
```txt
|
|
291
324
|
USAGE
|
|
292
325
|
$ ops log <issue> -t <type> -c [component]
|
|
293
326
|
|
|
@@ -317,7 +350,7 @@ EXAMPLES
|
|
|
317
350
|
generates final changelog from unreleased notes on the root,
|
|
318
351
|
final changelog for implementation component is placed under basic/Changelog.md
|
|
319
352
|
|
|
320
|
-
```
|
|
353
|
+
```txt
|
|
321
354
|
USAGE
|
|
322
355
|
$ ops log:gen [options]
|
|
323
356
|
|
|
@@ -346,7 +379,7 @@ validates formatting of all unreleased changelogs:
|
|
|
346
379
|
|
|
347
380
|
- 2.4.2 - added an exit statement that will force exit on changelog validation errors, preparing it for CI
|
|
348
381
|
|
|
349
|
-
```
|
|
382
|
+
```tx
|
|
350
383
|
USAGE
|
|
351
384
|
$ ops log:validate [options]
|
|
352
385
|
|
|
@@ -361,14 +394,14 @@ EXAMPLE
|
|
|
361
394
|
|
|
362
395
|
log in to use ops services
|
|
363
396
|
|
|
364
|
-
```
|
|
397
|
+
```txt
|
|
365
398
|
USAGE
|
|
366
399
|
$ ops login
|
|
367
400
|
|
|
368
401
|
OPTIONS
|
|
369
|
-
--servicePrincipal authenticate using service principal credentials
|
|
370
|
-
-c, --clientId (application) client id
|
|
371
|
-
-s, --secret client secret
|
|
402
|
+
--servicePrincipal # authenticate using service principal credentials
|
|
403
|
+
-c, --clientId # (application) client id
|
|
404
|
+
-s, --secret # client secret
|
|
372
405
|
|
|
373
406
|
EXAMPLES
|
|
374
407
|
$ ops login
|
|
@@ -379,7 +412,7 @@ EXAMPLES
|
|
|
379
412
|
|
|
380
413
|
check if npm packages were published
|
|
381
414
|
|
|
382
|
-
```
|
|
415
|
+
```txt
|
|
383
416
|
USAGE
|
|
384
417
|
$ ops npm:check-publish [options]
|
|
385
418
|
|
|
@@ -399,7 +432,7 @@ EXAMPLES
|
|
|
399
432
|
|
|
400
433
|
publish npm packages
|
|
401
434
|
|
|
402
|
-
```
|
|
435
|
+
```txt
|
|
403
436
|
USAGE
|
|
404
437
|
$ ops npm:publish [options]
|
|
405
438
|
|
|
@@ -420,7 +453,7 @@ EXAMPLES
|
|
|
420
453
|
|
|
421
454
|
update npm dependencies per package filter
|
|
422
455
|
|
|
423
|
-
```
|
|
456
|
+
```txt
|
|
424
457
|
USAGE
|
|
425
458
|
$ ops npm:dependency-update <type> [flags]
|
|
426
459
|
|
|
@@ -434,11 +467,12 @@ OPTIONS
|
|
|
434
467
|
EXAMPLE
|
|
435
468
|
$ ops npm:dependency-update 3.4.3 --filter @adinsure/*
|
|
436
469
|
```
|
|
470
|
+
|
|
437
471
|
## `ops nuget:dependency-update`
|
|
438
472
|
|
|
439
473
|
update nuget dependencies per package filter
|
|
440
474
|
|
|
441
|
-
```
|
|
475
|
+
```txt
|
|
442
476
|
USAGE
|
|
443
477
|
$ ops nuget:dependency-update <type> [flags]
|
|
444
478
|
|
|
@@ -461,7 +495,7 @@ destination path for each file will be specified destination path with appended
|
|
|
461
495
|
|
|
462
496
|
> Introduced in version 3.1.0.
|
|
463
497
|
|
|
464
|
-
```
|
|
498
|
+
```txt
|
|
465
499
|
USAGE
|
|
466
500
|
$ ops prepare-content -d <destination> -s [source]
|
|
467
501
|
|
|
@@ -510,7 +544,7 @@ based on the specified `.opsprepare` file residing in source directory.
|
|
|
510
544
|
|
|
511
545
|
This is the example source directory structure:
|
|
512
546
|
|
|
513
|
-
```
|
|
547
|
+
```ascii
|
|
514
548
|
src_data
|
|
515
549
|
├── .opsprepare
|
|
516
550
|
├── README.tpl
|
|
@@ -533,7 +567,7 @@ src_data
|
|
|
533
567
|
|
|
534
568
|
Contents of `.opsprepare` file in the `src_data` directory:
|
|
535
569
|
|
|
536
|
-
```
|
|
570
|
+
```txt
|
|
537
571
|
# Comment
|
|
538
572
|
src
|
|
539
573
|
dist/server
|
|
@@ -549,7 +583,7 @@ README.tpl {cp:/README.tpl.src}
|
|
|
549
583
|
Running `ops -s src_data -d dst_data` with `src_data/.opsprepare` containing above content
|
|
550
584
|
results in:
|
|
551
585
|
|
|
552
|
-
```
|
|
586
|
+
```ascii
|
|
553
587
|
dst_data
|
|
554
588
|
└── src_data
|
|
555
589
|
├── README.md
|
|
@@ -581,6 +615,7 @@ Note that copying and explicit transformations are performed before any removal
|
|
|
581
615
|
#### Comments
|
|
582
616
|
|
|
583
617
|
Any line prefixed by `#` is considered a comment and will not result in any file/directory operation.
|
|
618
|
+
|
|
584
619
|
#### Copy operations
|
|
585
620
|
|
|
586
621
|
Any file/directory not prefixed by `!` or `#` having explicit transformation defined in `{...}` after
|
|
@@ -592,7 +627,7 @@ to the target directory.
|
|
|
592
627
|
Transformation operations are always specified using curly braces following the source file name. Base
|
|
593
628
|
syntax looks like this:
|
|
594
629
|
|
|
595
|
-
```
|
|
630
|
+
```txt
|
|
596
631
|
{<transformation type>:<transformation parameters>}
|
|
597
632
|
```
|
|
598
633
|
|
|
@@ -604,7 +639,7 @@ Two types of transformation operations are supported:
|
|
|
604
639
|
|
|
605
640
|
**cp - copy transformation syntax**
|
|
606
641
|
|
|
607
|
-
```
|
|
642
|
+
```txt
|
|
608
643
|
{cp:<destination path>}
|
|
609
644
|
|
|
610
645
|
Examples:
|
|
@@ -619,7 +654,7 @@ can start with or without the `/` character but using makes the syntax more read
|
|
|
619
654
|
|
|
620
655
|
**js - JavaScript transformation syntax**
|
|
621
656
|
|
|
622
|
-
```
|
|
657
|
+
```txt
|
|
623
658
|
{js:<transformation_module_path>:<transformation_function_name>}
|
|
624
659
|
|
|
625
660
|
Example:
|
|
@@ -661,11 +696,12 @@ module.exports = {
|
|
|
661
696
|
|
|
662
697
|
Any file/directory prefixed by `!` will be removed from the destination based on it's full path
|
|
663
698
|
relative from `ops` execution directory to source file/directory path.
|
|
699
|
+
|
|
664
700
|
## `ops version <type>`
|
|
665
701
|
|
|
666
702
|
creates everything necessary for the new release
|
|
667
703
|
|
|
668
|
-
```
|
|
704
|
+
```txt
|
|
669
705
|
USAGE
|
|
670
706
|
$ ops version <type> [flags]
|
|
671
707
|
|
|
@@ -690,37 +726,37 @@ EXAMPLES
|
|
|
690
726
|
$ ops version new -v 3.2.1 --only-npm-packages "@adinsure/"
|
|
691
727
|
```
|
|
692
728
|
|
|
693
|
-
|
|
729
|
+
- _prerelease_ is generated from YearMonth incremental number (example: 201909.1) or RC (example: rc.0). prereleases generated in same month will have only last number incremented and first prerelease generated in next month will bump first number and start with 0 (example: 201910.0)
|
|
694
730
|
|
|
695
|
-
|
|
731
|
+
- _patch_ increments third number and prerelease number is ommited. (example: 3.4.0-201909.2 -> 3.4.0 and 3.3.11 -> 3.3.12)
|
|
696
732
|
|
|
697
|
-
|
|
733
|
+
- _preminor_ increments for prerelease in second number (example: 3.2.3 -> 3.3.0-201910.0)
|
|
698
734
|
|
|
699
|
-
|
|
735
|
+
- _minor_ increments second number (example: 3.4.3 -> 3.5.0)
|
|
700
736
|
|
|
701
|
-
|
|
737
|
+
- _premajor_ increments to prerelease in first number (example: 3.4.3 -> 4.0.0-201911.0)
|
|
702
738
|
|
|
703
|
-
|
|
739
|
+
- _major_ increments first number (example: 3.4.5 -> 4.0.0)
|
|
704
740
|
|
|
705
|
-
|
|
741
|
+
- _new-version_ allows setting own version regardles of VERSION file. **Incrementing NPM version separately is not supported in this case. NPM packages are also bumped to specified version.**
|
|
706
742
|
|
|
707
743
|
> Prerelease Note: Prerelease should only be user in **master** branch.
|
|
708
744
|
|
|
709
745
|
> Patch Note: Patch is used on **release/x.x** branches for creating patch releases
|
|
710
|
-
|
|
711
746
|
> When creating new **release/x.x** branch 2 steps are needed:
|
|
712
|
-
>
|
|
713
|
-
>
|
|
747
|
+
>
|
|
748
|
+
> - creating _patch_ version on **release/x.x** branch
|
|
749
|
+
> - creating _preminor_ or _premajor_ version on **master** branch
|
|
714
750
|
|
|
715
751
|
> Dependencies for packages are updated on all package.json files. If prerelease version in specified full version is specified (example: 4.0.0-201911.0), or if non prerelease version ends with x (example: 3.5.x)
|
|
716
752
|
|
|
717
|
-
> NPM packages node: For npm package to update properly
|
|
753
|
+
> NPM packages node: For npm package to update properly _wsrun-version_ preset needs to be in _scripts_ portion of _package.json_. (example: `"wsrun-version": "yarn wsrun -p @adinsure-tools/* -p @adinsure/* -c"`)
|
|
718
754
|
|
|
719
755
|
## `ops sql <type> <module> [flags]`
|
|
720
756
|
|
|
721
757
|
creates a new database script
|
|
722
758
|
|
|
723
|
-
```
|
|
759
|
+
```txt
|
|
724
760
|
USAGE
|
|
725
761
|
$ ops sql <type> <module> [flags]
|
|
726
762
|
|
|
@@ -748,7 +784,7 @@ EXAMPLES
|
|
|
748
784
|
|
|
749
785
|
downloads translate from AdDictionary service
|
|
750
786
|
|
|
751
|
-
```
|
|
787
|
+
```txt
|
|
752
788
|
USAGE
|
|
753
789
|
$ ops translate <language> [flags]
|
|
754
790
|
|
|
@@ -766,16 +802,3 @@ EXAMPLES
|
|
|
766
802
|
$ ops translate "en-US=en-US;ru-Ru=ru-RU" -f json -m "Client business accounting;Client business base;"
|
|
767
803
|
$ ops translate "en-US=en-US;ru-Ru=ru-RU" -f xml -o translationDestination
|
|
768
804
|
```
|
|
769
|
-
|
|
770
|
-
## `ops update`
|
|
771
|
-
|
|
772
|
-
update the ops CLI
|
|
773
|
-
|
|
774
|
-
```
|
|
775
|
-
USAGE
|
|
776
|
-
$ ops update [CHANNEL]
|
|
777
|
-
|
|
778
|
-
OPTIONS
|
|
779
|
-
--from-local interactively choose an already installed version
|
|
780
|
-
```
|
|
781
|
-
|
package/lib/command.base.js
CHANGED
|
@@ -30,7 +30,7 @@ class CommandBase extends command_1.Command {
|
|
|
30
30
|
for (const file of filesToCheck) {
|
|
31
31
|
const versionPath = path.resolve(gitRoot, file);
|
|
32
32
|
if (await fs.pathExists(versionPath)) {
|
|
33
|
-
return fs.readFileSync(versionPath, 'utf-8');
|
|
33
|
+
return fs.readFileSync(versionPath, 'utf-8').trim();
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
return this.error(`${filesToCheck} file was not found`, { exit: 2 });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { flags } from '@oclif/command';
|
|
2
|
+
import CommandBase from '../../command.base';
|
|
3
|
+
export default class DownloadJmeter extends CommandBase {
|
|
4
|
+
static description: string;
|
|
5
|
+
static usage: string;
|
|
6
|
+
static examples: string[];
|
|
7
|
+
static flags: {
|
|
8
|
+
output: flags.IOptionFlag<string>;
|
|
9
|
+
};
|
|
10
|
+
private readonly url;
|
|
11
|
+
downloadFile(): Promise<string>;
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@oclif/command");
|
|
4
|
+
const chalk_1 = require("chalk");
|
|
5
|
+
const cli_ux_1 = require("cli-ux");
|
|
6
|
+
const fs = require("fs-extra");
|
|
7
|
+
const path = require("path");
|
|
8
|
+
const request = require("request-promise");
|
|
9
|
+
const command_base_1 = require("../../command.base");
|
|
10
|
+
class DownloadJmeter extends command_base_1.default {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.url = 'https://ops.adinsure.com/api/storage/jmeter/';
|
|
14
|
+
}
|
|
15
|
+
async downloadFile() {
|
|
16
|
+
let options = {
|
|
17
|
+
uri: `${this.url}/jmeter-artifacts.zip`,
|
|
18
|
+
encoding: 'binary',
|
|
19
|
+
headers: {
|
|
20
|
+
Authorization: 'Bearer ' + await this.security.getToken()
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return request.get(options);
|
|
24
|
+
}
|
|
25
|
+
async run() {
|
|
26
|
+
const { flags } = this.parse(DownloadJmeter);
|
|
27
|
+
let basePath = flags.output;
|
|
28
|
+
const filename = `jmeter-artifacts.zip`;
|
|
29
|
+
let filePath = path.resolve(basePath, filename);
|
|
30
|
+
cli_ux_1.default.action.start(`Downloading jmeter examples to ${filePath}`, undefined, { stdout: true });
|
|
31
|
+
try {
|
|
32
|
+
let file = await this.downloadFile();
|
|
33
|
+
let writeStream = fs.createWriteStream(filePath);
|
|
34
|
+
writeStream.write(file, 'binary');
|
|
35
|
+
writeStream.on('finish', () => {
|
|
36
|
+
cli_ux_1.default.action.stop(`${chalk_1.default.green('OK')}`);
|
|
37
|
+
});
|
|
38
|
+
writeStream.end();
|
|
39
|
+
}
|
|
40
|
+
catch (err) {
|
|
41
|
+
switch (err.statusCode) {
|
|
42
|
+
case 404:
|
|
43
|
+
this.error('Does not exists.', { exit: 1 });
|
|
44
|
+
break;
|
|
45
|
+
case 400:
|
|
46
|
+
this.error('Try refreshing your login credentials with "ops login".', { exit: 1 });
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
this.error(err.message);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.default = DownloadJmeter;
|
|
55
|
+
DownloadJmeter.description = 'download jmeter examples from Azure storage';
|
|
56
|
+
DownloadJmeter.usage = 'download:jmeter-examples <flags>';
|
|
57
|
+
DownloadJmeter.examples = [
|
|
58
|
+
`$ ops download:jmeter-examples -o ~/Downloads`
|
|
59
|
+
];
|
|
60
|
+
DownloadJmeter.flags = {
|
|
61
|
+
output: command_1.flags.string({
|
|
62
|
+
char: 'o',
|
|
63
|
+
description: 'output directory',
|
|
64
|
+
default: './'
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { flags } from '@oclif/command';
|
|
2
|
+
import CommandBase from '../../command.base';
|
|
3
|
+
export default class DownloadKeycloak extends CommandBase {
|
|
4
|
+
static description: string;
|
|
5
|
+
static usage: string;
|
|
6
|
+
static examples: string[];
|
|
7
|
+
static flags: {
|
|
8
|
+
version: flags.IOptionFlag<string>;
|
|
9
|
+
output: flags.IOptionFlag<string>;
|
|
10
|
+
};
|
|
11
|
+
private readonly url;
|
|
12
|
+
downloadFile(version: string): Promise<string>;
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@oclif/command");
|
|
4
|
+
const chalk_1 = require("chalk");
|
|
5
|
+
const cli_ux_1 = require("cli-ux");
|
|
6
|
+
const fs = require("fs-extra");
|
|
7
|
+
const path = require("path");
|
|
8
|
+
const request = require("request-promise");
|
|
9
|
+
const command_base_1 = require("../../command.base");
|
|
10
|
+
class DownloadKeycloak extends command_base_1.default {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.url = 'https://ops.adinsure.com/api/storage/extensions/';
|
|
14
|
+
}
|
|
15
|
+
async downloadFile(version) {
|
|
16
|
+
let options = {
|
|
17
|
+
uri: `${this.url}/keycloak-scim2-outbound-provisioning-${version}.zip`,
|
|
18
|
+
encoding: 'binary',
|
|
19
|
+
headers: {
|
|
20
|
+
Authorization: 'Bearer ' + await this.security.getToken()
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return request.get(options);
|
|
24
|
+
}
|
|
25
|
+
async run() {
|
|
26
|
+
const { flags } = this.parse(DownloadKeycloak);
|
|
27
|
+
let basePath = flags.output;
|
|
28
|
+
const filename = `Keycloak-scim-${flags.version}.zip`;
|
|
29
|
+
let filePath = path.resolve(basePath, filename);
|
|
30
|
+
cli_ux_1.default.action.start(`Downloading Keycloack version ${flags.version} to ${filePath}`, undefined, { stdout: true });
|
|
31
|
+
try {
|
|
32
|
+
let file = await this.downloadFile(flags.version);
|
|
33
|
+
let writeStream = fs.createWriteStream(filePath);
|
|
34
|
+
writeStream.write(file, 'binary');
|
|
35
|
+
writeStream.on('finish', () => {
|
|
36
|
+
cli_ux_1.default.action.stop(`${chalk_1.default.green('OK')}`);
|
|
37
|
+
});
|
|
38
|
+
writeStream.end();
|
|
39
|
+
}
|
|
40
|
+
catch (err) {
|
|
41
|
+
switch (err.statusCode) {
|
|
42
|
+
case 404:
|
|
43
|
+
this.error('Does not exists.', { exit: 1 });
|
|
44
|
+
break;
|
|
45
|
+
case 400:
|
|
46
|
+
this.error('Try refreshing your login credentials with "ops login".', { exit: 1 });
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
this.error(err.message);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.default = DownloadKeycloak;
|
|
55
|
+
DownloadKeycloak.description = 'download Keycloak-scim from Azure storage';
|
|
56
|
+
DownloadKeycloak.usage = 'download:keycloak-scim <flags>';
|
|
57
|
+
DownloadKeycloak.examples = [
|
|
58
|
+
`$ ops download:keycloak-scim -v 3.2.0 -o ~/Downloads`
|
|
59
|
+
];
|
|
60
|
+
DownloadKeycloak.flags = {
|
|
61
|
+
version: command_1.flags.string({
|
|
62
|
+
char: 'v',
|
|
63
|
+
description: 'version we want to download',
|
|
64
|
+
required: true
|
|
65
|
+
}),
|
|
66
|
+
output: command_1.flags.string({
|
|
67
|
+
char: 'o',
|
|
68
|
+
description: 'output directory',
|
|
69
|
+
default: './'
|
|
70
|
+
}),
|
|
71
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { flags } from '@oclif/command';
|
|
2
|
+
import CommandBase from '../../command.base';
|
|
3
|
+
export default class DownloadSignalrServer extends CommandBase {
|
|
4
|
+
static description: string;
|
|
5
|
+
static usage: string;
|
|
6
|
+
static examples: string[];
|
|
7
|
+
static flags: {
|
|
8
|
+
version: flags.IOptionFlag<string>;
|
|
9
|
+
output: flags.IOptionFlag<string>;
|
|
10
|
+
};
|
|
11
|
+
private readonly url;
|
|
12
|
+
/**
|
|
13
|
+
* Get unique scriptID by specified version
|
|
14
|
+
*/
|
|
15
|
+
downloadFile(version: string): Promise<string>;
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const command_1 = require("@oclif/command");
|
|
4
|
+
const chalk_1 = require("chalk");
|
|
5
|
+
const cli_ux_1 = require("cli-ux");
|
|
6
|
+
const fs = require("fs-extra");
|
|
7
|
+
const path = require("path");
|
|
8
|
+
const request = require("request-promise");
|
|
9
|
+
const command_base_1 = require("../../command.base");
|
|
10
|
+
class DownloadSignalrServer extends command_base_1.default {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.url = 'https://ops.adinsure.com/api/storage/binaries/';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get unique scriptID by specified version
|
|
17
|
+
*/
|
|
18
|
+
async downloadFile(version) {
|
|
19
|
+
let options = {
|
|
20
|
+
uri: `${this.url}/AdInsure-signalr-${version}.zip`,
|
|
21
|
+
encoding: 'binary',
|
|
22
|
+
headers: {
|
|
23
|
+
Authorization: 'Bearer ' + await this.security.getToken()
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return request.get(options);
|
|
27
|
+
}
|
|
28
|
+
async run() {
|
|
29
|
+
const { flags } = this.parse(DownloadSignalrServer);
|
|
30
|
+
let basePath = flags.output;
|
|
31
|
+
const filename = `AdInsure-signalr-${flags.version}.zip`;
|
|
32
|
+
let filePath = path.resolve(basePath, filename);
|
|
33
|
+
cli_ux_1.default.action.start(`Downloading AdInsure SignalR Server version ${flags.version} to ${filePath}`, undefined, { stdout: true });
|
|
34
|
+
try {
|
|
35
|
+
let file = await this.downloadFile(flags.version);
|
|
36
|
+
let writeStream = fs.createWriteStream(filePath);
|
|
37
|
+
writeStream.write(file, 'binary');
|
|
38
|
+
writeStream.on('finish', () => {
|
|
39
|
+
cli_ux_1.default.action.stop(`${chalk_1.default.green('OK')}`);
|
|
40
|
+
});
|
|
41
|
+
writeStream.end();
|
|
42
|
+
}
|
|
43
|
+
catch (err) {
|
|
44
|
+
switch (err.statusCode) {
|
|
45
|
+
case 404:
|
|
46
|
+
// cli.action.stop(`${chalk.red('Does not exists.')}`);
|
|
47
|
+
this.error('Does not exists.', { exit: 1 });
|
|
48
|
+
break;
|
|
49
|
+
case 400:
|
|
50
|
+
this.error('Try refreshing your login credentials with "ops login".', { exit: 1 });
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
this.error(err.message);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.default = DownloadSignalrServer;
|
|
59
|
+
DownloadSignalrServer.description = 'download AdInsure SignalR Server zip from Azure storage';
|
|
60
|
+
DownloadSignalrServer.usage = 'download:signalr <flags>';
|
|
61
|
+
DownloadSignalrServer.examples = [
|
|
62
|
+
`$ ops download:signalr -v 18.0.0 -o ~/Downloads`
|
|
63
|
+
];
|
|
64
|
+
DownloadSignalrServer.flags = {
|
|
65
|
+
version: command_1.flags.string({
|
|
66
|
+
char: 'v',
|
|
67
|
+
description: 'version we want to download',
|
|
68
|
+
required: true
|
|
69
|
+
}),
|
|
70
|
+
output: command_1.flags.string({
|
|
71
|
+
char: 'o',
|
|
72
|
+
description: 'output directory',
|
|
73
|
+
default: './'
|
|
74
|
+
}),
|
|
75
|
+
};
|
|
@@ -89,7 +89,8 @@ DownloadStudio.description = 'download AdInsure Studio vsix from azure storage';
|
|
|
89
89
|
DownloadStudio.usage = 'download:studio <flags>';
|
|
90
90
|
DownloadStudio.examples = [
|
|
91
91
|
`$ ops download:studio -v 15.0.0 -o ~/Downloads`,
|
|
92
|
-
`$ ops download:studio -v 15.0.0 -i
|
|
92
|
+
`$ ops download:studio -v 15.0.0 -i`,
|
|
93
|
+
`$ ops download:studio -v 15.0.0 -i -s`
|
|
93
94
|
];
|
|
94
95
|
DownloadStudio.flags = {
|
|
95
96
|
version: command_1.flags.string({
|
|
@@ -110,7 +111,6 @@ DownloadStudio.flags = {
|
|
|
110
111
|
skip: command_1.flags.boolean({
|
|
111
112
|
char: 's',
|
|
112
113
|
description: 'only with install. If passed, and desired version is installed it will skip it.',
|
|
113
|
-
default: false,
|
|
114
114
|
dependsOn: ['install']
|
|
115
115
|
}),
|
|
116
116
|
};
|
|
@@ -310,7 +310,7 @@ class PrepareContent extends command_base_1.default {
|
|
|
310
310
|
try {
|
|
311
311
|
fs.removeSync(curPath);
|
|
312
312
|
this.log('Removing file: ', curPath);
|
|
313
|
-
} catch (
|
|
313
|
+
} catch (err) {
|
|
314
314
|
cli.action.stop(`${chalk.red('failed')}`);
|
|
315
315
|
this.error(error.message);
|
|
316
316
|
}
|
|
@@ -318,7 +318,7 @@ class PrepareContent extends command_base_1.default {
|
|
|
318
318
|
try {
|
|
319
319
|
fs.removeSync(curPath);
|
|
320
320
|
this.log('Removing dir: ', curPath);
|
|
321
|
-
} catch (
|
|
321
|
+
} catch (err) {
|
|
322
322
|
cli.action.stop(`${chalk.red('failed')}`);
|
|
323
323
|
this.error(error.message);
|
|
324
324
|
}
|
|
@@ -41,17 +41,17 @@ class Translate extends command_base_1.default {
|
|
|
41
41
|
let response = await request.get(requestOptions);
|
|
42
42
|
return response;
|
|
43
43
|
}
|
|
44
|
-
catch (
|
|
44
|
+
catch (err) {
|
|
45
45
|
let errorMessage;
|
|
46
46
|
try {
|
|
47
|
-
const errorJson = JSON.parse(
|
|
47
|
+
const errorJson = JSON.parse(err.error);
|
|
48
48
|
errorMessage = `An error has occurred: ${errorJson.ExceptionMessage}`;
|
|
49
49
|
}
|
|
50
50
|
catch (_a) {
|
|
51
|
-
errorMessage =
|
|
51
|
+
errorMessage = err.message;
|
|
52
52
|
}
|
|
53
53
|
this.log(chalk_1.default.red(errorMessage));
|
|
54
|
-
throw
|
|
54
|
+
throw err;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -107,9 +107,9 @@ class Translate extends command_base_1.default {
|
|
|
107
107
|
await this.extractFiles(response, destination, finalFileName);
|
|
108
108
|
cli_ux_1.default.action.stop(`${chalk_1.default.green('done')}`);
|
|
109
109
|
}
|
|
110
|
-
catch (
|
|
110
|
+
catch (err) {
|
|
111
111
|
cli_ux_1.default.action.stop(`${chalk_1.default.red('error')}`);
|
|
112
|
-
this.error(
|
|
112
|
+
this.error(err.message);
|
|
113
113
|
}
|
|
114
114
|
this.log(`Translations extracted into ${chalk_1.default.cyan(path.resolve(destination))}`);
|
|
115
115
|
this.log(`${chalk_1.default.green('Done.')}`);
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"4.6.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: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: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"],"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.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}]}}}
|
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.
|
|
4
|
+
"version": "4.8.0",
|
|
5
5
|
"author": "Adacta Digital Service Department",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ops": "./bin/run"
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"@oclif/config": "^1",
|
|
13
13
|
"@oclif/plugin-help": "^2",
|
|
14
14
|
"@oclif/plugin-not-found": "^1.2.2",
|
|
15
|
-
"@oclif/plugin-update": "^1.3.9",
|
|
16
15
|
"@oclif/plugin-warn-if-update-available": "^1.7.0",
|
|
17
16
|
"@types/semver": "^6.0.2",
|
|
18
17
|
"axios": "^0.27.2",
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
"gray-matter": "^4.0.2",
|
|
24
23
|
"ini": "^3.0.0",
|
|
25
24
|
"inquirer": "^7.3.3",
|
|
26
|
-
"jira-client": "^
|
|
25
|
+
"jira-client": "^8.2.2",
|
|
27
26
|
"jszip": "^3.2.2",
|
|
28
27
|
"lodash": "^4.17.11",
|
|
29
28
|
"minimatch": "^3.0.4",
|
|
@@ -31,36 +30,43 @@
|
|
|
31
30
|
"oauth": "^0.9.15",
|
|
32
31
|
"open": "^6.4.0",
|
|
33
32
|
"replace-in-file": "^4.3.1",
|
|
34
|
-
"request
|
|
33
|
+
"request": "^2.88.2",
|
|
34
|
+
"request-promise": "^4.2.6",
|
|
35
35
|
"rimraf": "^2.6.3",
|
|
36
36
|
"semver": "^7.3.7",
|
|
37
37
|
"tslib": "^1",
|
|
38
38
|
"yaml": "^2.1.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
+
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
41
42
|
"@oclif/dev-cli": "^1",
|
|
42
43
|
"@oclif/test": "^1",
|
|
43
44
|
"@oclif/tslint": "^3",
|
|
45
|
+
"@testdeck/mocha": "^0.3.3",
|
|
44
46
|
"@types/chai": "^4",
|
|
45
47
|
"@types/fs-extra": "^7.0.0",
|
|
46
48
|
"@types/ini": "^1.3.31",
|
|
47
49
|
"@types/inquirer": "^7.3.1",
|
|
48
50
|
"@types/jira-client": "^6.21.3",
|
|
49
51
|
"@types/jszip": "^3.4.1",
|
|
50
|
-
"@types/mocha": "^5",
|
|
52
|
+
"@types/mocha": "^5.2.7",
|
|
51
53
|
"@types/mock-fs": "^4.13.1",
|
|
52
54
|
"@types/node": "^10",
|
|
53
55
|
"@types/oauth": "^0.9.1",
|
|
54
56
|
"@types/request-promise": "^4.1.44",
|
|
55
57
|
"@types/rimraf": "^2.0.2",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
+
"@types/sinon": "^10.0.15",
|
|
59
|
+
"chai": "^4.3.7",
|
|
60
|
+
"mocha": "^10.2.0",
|
|
61
|
+
"mocha-typescript": "^1.1.17",
|
|
58
62
|
"mock-fs": "^5.1.1",
|
|
59
63
|
"mock-spawn": "^0.2.6",
|
|
60
64
|
"nock": "^13.1.3",
|
|
61
|
-
"nyc": "^15.
|
|
65
|
+
"nyc": "^15.1.0",
|
|
66
|
+
"sinon": "^15.1.0",
|
|
62
67
|
"timekeeper": "^2.2.0",
|
|
63
|
-
"ts-
|
|
68
|
+
"ts-mockito": "^2.6.1",
|
|
69
|
+
"ts-node": "^8.10.2",
|
|
64
70
|
"tslint": "^5",
|
|
65
71
|
"typescript": "^3.3"
|
|
66
72
|
},
|
|
@@ -89,27 +95,27 @@
|
|
|
89
95
|
"plugins": [
|
|
90
96
|
"@oclif/plugin-help",
|
|
91
97
|
"@oclif/plugin-not-found",
|
|
92
|
-
"@oclif/plugin-warn-if-update-available"
|
|
93
|
-
"@oclif/plugin-update"
|
|
98
|
+
"@oclif/plugin-warn-if-update-available"
|
|
94
99
|
],
|
|
100
|
+
"topics": {
|
|
101
|
+
"download": {
|
|
102
|
+
"description": "download AdInsure platform bundle zip from Azure storage. Use download:[client, identity-server, scheduler, server, signalr, studio] for individual components"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
95
105
|
"warn-if-update-available": {
|
|
96
106
|
"timeoutInDays": 1,
|
|
97
|
-
"message": "ops-cli update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."
|
|
98
|
-
},
|
|
99
|
-
"update": {
|
|
100
|
-
"s3": {
|
|
101
|
-
"host": "https://adinsure.blob.core.windows.net/ops-cli"
|
|
102
|
-
}
|
|
107
|
+
"message": "ops-cli update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>. If you installed using npm update by running 'npm update -g @adinsure-ops/ops-cli', otherwise update via package manager / installer package."
|
|
103
108
|
}
|
|
104
109
|
},
|
|
105
110
|
"repository": "ops/ops-cli",
|
|
106
111
|
"scripts": {
|
|
107
112
|
"postpack": "rimraf oclif.manifest.json",
|
|
108
113
|
"prepack": "rimraf lib && tsc -b && oclif-dev manifest",
|
|
109
|
-
"test": "nyc --extension .ts mocha --timeout 20000 --forbid-only \"test/**/*.test.ts\"",
|
|
110
|
-
"test-
|
|
111
|
-
"test-
|
|
112
|
-
"test-single
|
|
114
|
+
"test": "nyc --require ts-node/register --extension .ts mocha --timeout 20000 --forbid-only \"test/**/*.test.ts\"",
|
|
115
|
+
"test-unit": "mocha \"./test/**/*.spec.ts\"",
|
|
116
|
+
"test-with-coverage": "nyc --require ts-node/register --extension .ts mocha --reporter=doc --timeout 20000 --forbid-only \"test/**/*.test.ts\"",
|
|
117
|
+
"test-single": "nyc --require ts-node/register --extension .ts mocha --timeout 20000 --forbid-only",
|
|
118
|
+
"test-single-with-coverage": "nyc --require ts-node/register --extension .ts mocha --reporter=doc --timeout 20000 --forbid-only",
|
|
113
119
|
"lint": "tslint -p test -t stylish"
|
|
114
120
|
},
|
|
115
121
|
"types": "lib/index.d.ts"
|