pontus-x_cli 1.0.4 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -39
- package/bin/dev.js +5 -5
- package/bin/run.js +4 -5
- package/dist/commands/access.d.ts +1 -1
- package/dist/commands/access.js +3 -3
- package/dist/commands/access.js.map +1 -1
- package/dist/commands/change-price.d.ts +3 -3
- package/dist/commands/change-price.js +12 -11
- package/dist/commands/change-price.js.map +1 -1
- package/dist/commands/check-participant-compliance.d.ts +1 -1
- package/dist/commands/check-participant-compliance.js +13 -11
- package/dist/commands/check-participant-compliance.js.map +1 -1
- package/dist/commands/compute-results.d.ts +1 -1
- package/dist/commands/compute-results.js +7 -7
- package/dist/commands/compute-results.js.map +1 -1
- package/dist/commands/compute-status.d.ts +1 -1
- package/dist/commands/compute-status.js +7 -7
- package/dist/commands/compute-status.js.map +1 -1
- package/dist/commands/compute.d.ts +5 -4
- package/dist/commands/compute.js +60 -14
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/edit-additional-metadata.d.ts +3 -3
- package/dist/commands/edit-additional-metadata.js +18 -11
- package/dist/commands/edit-additional-metadata.js.map +1 -1
- package/dist/commands/edit-algo.d.ts +3 -3
- package/dist/commands/edit-algo.js +22 -13
- package/dist/commands/edit-algo.js.map +1 -1
- package/dist/commands/edit-asset-url.d.ts +3 -3
- package/dist/commands/edit-asset-url.js +12 -11
- package/dist/commands/edit-asset-url.js.map +1 -1
- package/dist/commands/edit-trusted-algos.d.ts +1 -1
- package/dist/commands/edit-trusted-algos.js +10 -6
- package/dist/commands/edit-trusted-algos.js.map +1 -1
- package/dist/commands/export-private-key.d.ts +2 -2
- package/dist/commands/export-private-key.js +27 -27
- package/dist/commands/export-private-key.js.map +1 -1
- package/dist/commands/generate-asset-credentials.d.ts +1 -1
- package/dist/commands/generate-asset-credentials.js +11 -11
- package/dist/commands/generate-asset-credentials.js.map +1 -1
- package/dist/commands/generate-did-web.d.ts +1 -1
- package/dist/commands/generate-did-web.js +11 -11
- package/dist/commands/generate-did-web.js.map +1 -1
- package/dist/commands/generate-participant-credentials.d.ts +1 -1
- package/dist/commands/generate-participant-credentials.js +10 -10
- package/dist/commands/generate-participant-credentials.js.map +1 -1
- package/dist/commands/get.d.ts +1 -1
- package/dist/commands/get.js +3 -3
- package/dist/commands/get.js.map +1 -1
- package/dist/commands/login.d.ts +2 -2
- package/dist/commands/login.js +16 -13
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts +1 -1
- package/dist/commands/logout.js +7 -7
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/publish.d.ts +5 -3
- package/dist/commands/publish.js +95 -27
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/render.d.ts +12 -0
- package/dist/commands/render.js +126 -0
- package/dist/commands/render.js.map +1 -0
- package/dist/commands/revoke.d.ts +7 -6
- package/dist/commands/revoke.js +92 -23
- package/dist/commands/revoke.js.map +1 -1
- package/dist/commands/self-description.d.ts +3 -3
- package/dist/commands/self-description.js +13 -8
- package/dist/commands/self-description.js.map +1 -1
- package/dist/config.d.ts +16 -18
- package/dist/config.js +63 -62
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/aquarius.d.ts +7 -0
- package/dist/lib/aquarius.js +71 -0
- package/dist/lib/aquarius.js.map +1 -0
- package/dist/lib/gaia-x_compliance/generate-credentials/index.js +26 -25
- package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -1
- package/dist/lib/manifest.d.ts +4 -0
- package/dist/lib/manifest.js +29 -0
- package/dist/lib/manifest.js.map +1 -0
- package/dist/lib/spec.d.ts +12 -0
- package/dist/lib/spec.js +266 -0
- package/dist/lib/spec.js.map +1 -0
- package/dist/lib/wallet.d.ts +1 -0
- package/dist/lib/wallet.js +14 -0
- package/dist/lib/wallet.js.map +1 -0
- package/dist/lib/yaml.d.ts +2 -0
- package/dist/lib/yaml.js +53 -0
- package/dist/lib/yaml.js.map +1 -0
- package/dist/scripts/json-schema.d.ts +1 -0
- package/dist/scripts/json-schema.js +24 -0
- package/dist/scripts/json-schema.js.map +1 -0
- package/dist/types/manifest-schema.json +52 -0
- package/dist/types/manifest.d.ts +17 -0
- package/dist/types/manifest.js +14 -0
- package/dist/types/manifest.js.map +1 -0
- package/dist/types/schema.d.ts +1 -2
- package/dist/types/schema.js +3 -2
- package/dist/types/schema.js.map +1 -1
- package/dist/types/schema.json +24 -72
- package/dist/utils/connection.d.ts +3 -3
- package/dist/utils/connection.js +2 -2
- package/dist/utils/connection.js.map +1 -1
- package/oclif.manifest.json +126 -19
- package/package.json +20 -18
- package/dist/lib/publishFromFile.d.ts +0 -2
- package/dist/lib/publishFromFile.js +0 -143
- package/dist/lib/publishFromFile.js.map +0 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ $ npm install -g pontus-x_cli
|
|
|
22
22
|
$ pontus-x_cli COMMAND
|
|
23
23
|
running command...
|
|
24
24
|
$ pontus-x_cli (--version)
|
|
25
|
-
pontus-x_cli/1.
|
|
25
|
+
pontus-x_cli/1.1.4 linux-x64 node-v25.6.1
|
|
26
26
|
$ pontus-x_cli --help [COMMAND]
|
|
27
27
|
USAGE
|
|
28
28
|
$ pontus-x_cli COMMAND
|
|
@@ -30,6 +30,33 @@ USAGE
|
|
|
30
30
|
```
|
|
31
31
|
<!-- usagestop -->
|
|
32
32
|
|
|
33
|
+
## Spec declarative format
|
|
34
|
+
|
|
35
|
+
Example:
|
|
36
|
+
|
|
37
|
+
```yaml
|
|
38
|
+
metadata:
|
|
39
|
+
type: algorithm
|
|
40
|
+
author: Universitat de Lleida (UdL)
|
|
41
|
+
name: Exploratory Data Analysis
|
|
42
|
+
description: description.md
|
|
43
|
+
...
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Check [samples/publish](samples/publish) folder for more examples.
|
|
47
|
+
|
|
48
|
+
## Manifest declarative format
|
|
49
|
+
|
|
50
|
+
Example:
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
accounts:
|
|
54
|
+
- name: Universitat de Lleida (UdL)
|
|
55
|
+
address: '0xd999baae98ac5246568fd726be8832c49626867d'
|
|
56
|
+
privateKeyPath: keys/d999baae98ac5246568fd726be8832c49626867d.json
|
|
57
|
+
passwordEnvKey: UDL_KEY_PASSWORD
|
|
58
|
+
```
|
|
59
|
+
|
|
33
60
|
# Commands
|
|
34
61
|
|
|
35
62
|
<!-- commands -->
|
|
@@ -53,7 +80,8 @@ USAGE
|
|
|
53
80
|
* [`pontus-x_cli login KEYFILE`](#pontus-x_cli-login-keyfile)
|
|
54
81
|
* [`pontus-x_cli logout`](#pontus-x_cli-logout)
|
|
55
82
|
* [`pontus-x_cli publish PATH`](#pontus-x_cli-publish-path)
|
|
56
|
-
* [`pontus-x_cli
|
|
83
|
+
* [`pontus-x_cli render [DID]`](#pontus-x_cli-render-did)
|
|
84
|
+
* [`pontus-x_cli revoke`](#pontus-x_cli-revoke)
|
|
57
85
|
* [`pontus-x_cli self-description DID SDURL`](#pontus-x_cli-self-description-did-sdurl)
|
|
58
86
|
|
|
59
87
|
## `pontus-x_cli access DID`
|
|
@@ -74,7 +102,7 @@ EXAMPLES
|
|
|
74
102
|
$ pontus-x_cli access did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686
|
|
75
103
|
```
|
|
76
104
|
|
|
77
|
-
_See code: [src/commands/access.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
105
|
+
_See code: [src/commands/access.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/access.ts)_
|
|
78
106
|
|
|
79
107
|
## `pontus-x_cli autocomplete [SHELL]`
|
|
80
108
|
|
|
@@ -129,7 +157,7 @@ EXAMPLES
|
|
|
129
157
|
$ pontus-x_cli change-price did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10
|
|
130
158
|
```
|
|
131
159
|
|
|
132
|
-
_See code: [src/commands/change-price.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
160
|
+
_See code: [src/commands/change-price.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/change-price.ts)_
|
|
133
161
|
|
|
134
162
|
## `pontus-x_cli check-participant-compliance`
|
|
135
163
|
|
|
@@ -150,7 +178,7 @@ EXAMPLES
|
|
|
150
178
|
$ pontus-x_cli check-participant-compliance -p ./CEP.data.json --vp ./CEP.vp.json
|
|
151
179
|
```
|
|
152
180
|
|
|
153
|
-
_See code: [src/commands/check-participant-compliance.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
181
|
+
_See code: [src/commands/check-participant-compliance.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/check-participant-compliance.ts)_
|
|
154
182
|
|
|
155
183
|
## `pontus-x_cli compute ALGO`
|
|
156
184
|
|
|
@@ -158,23 +186,26 @@ Compute the algorithm on one or more datasets.
|
|
|
158
186
|
|
|
159
187
|
```
|
|
160
188
|
USAGE
|
|
161
|
-
$ pontus-x_cli compute ALGO -d <value>... [-y]
|
|
189
|
+
$ pontus-x_cli compute ALGO [-d <value>...] [-t <value>...] [-y]
|
|
162
190
|
|
|
163
191
|
ARGUMENTS
|
|
164
192
|
ALGO Algorithm DID
|
|
165
193
|
|
|
166
194
|
FLAGS
|
|
167
|
-
-d, --datasets=<value>...
|
|
195
|
+
-d, --datasets=<value>... Dataset DIDs
|
|
196
|
+
-t, --tags=<value>... Tags to filter datasets (they must have all the provided tags)
|
|
168
197
|
-y, --yes Automatic yes to prompts
|
|
169
198
|
|
|
170
199
|
DESCRIPTION
|
|
171
200
|
Compute the algorithm on one or more datasets.
|
|
172
201
|
|
|
173
202
|
EXAMPLES
|
|
174
|
-
$ pontus-x_cli compute did:op:
|
|
203
|
+
$ pontus-x_cli compute did:op:34e2f... -d did:op:d8a36... -d did:op:12b45...
|
|
204
|
+
|
|
205
|
+
$ pontus-x_cli compute did:op:34e2f... -t tag1 -t tag2
|
|
175
206
|
```
|
|
176
207
|
|
|
177
|
-
_See code: [src/commands/compute.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
208
|
+
_See code: [src/commands/compute.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/compute.ts)_
|
|
178
209
|
|
|
179
210
|
## `pontus-x_cli compute-results JOBID`
|
|
180
211
|
|
|
@@ -197,7 +228,7 @@ EXAMPLES
|
|
|
197
228
|
$ pontus-x_cli compute-results 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat
|
|
198
229
|
```
|
|
199
230
|
|
|
200
|
-
_See code: [src/commands/compute-results.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
231
|
+
_See code: [src/commands/compute-results.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/compute-results.ts)_
|
|
201
232
|
|
|
202
233
|
## `pontus-x_cli compute-status JOBID`
|
|
203
234
|
|
|
@@ -220,7 +251,7 @@ EXAMPLES
|
|
|
220
251
|
$ pontus-x_cli compute-status 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat
|
|
221
252
|
```
|
|
222
253
|
|
|
223
|
-
_See code: [src/commands/compute-status.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
254
|
+
_See code: [src/commands/compute-status.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/compute-status.ts)_
|
|
224
255
|
|
|
225
256
|
## `pontus-x_cli edit-additional-metadata DID METADATAFILE`
|
|
226
257
|
|
|
@@ -244,7 +275,7 @@ EXAMPLES
|
|
|
244
275
|
$ pontus-x_cli edit-additional-metadata did:op:dcdb747f8feff3122c6d6c0f45a339a6e09415e721f98f61cc2c1d62ab35a21f ./metadata.json
|
|
245
276
|
```
|
|
246
277
|
|
|
247
|
-
_See code: [src/commands/edit-additional-metadata.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
278
|
+
_See code: [src/commands/edit-additional-metadata.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-additional-metadata.ts)_
|
|
248
279
|
|
|
249
280
|
## `pontus-x_cli edit-algo DID IMAGE TAG CHECKSUM ENTRYPOINT`
|
|
250
281
|
|
|
@@ -271,7 +302,7 @@ EXAMPLES
|
|
|
271
302
|
$ pontus-x_cli edit-algo did:op:dcdb747f8feff3122c6d6c0f45a339a6e09415e721f98f61cc2c1d62ab35a21f rogargon/pandas-profiling 4.16 sha256:81dca5439f07dff4d56097546a9fce7335be3de8e2622dc105c64e54376f86b5 "python /algorithm/src/main.py"
|
|
272
303
|
```
|
|
273
304
|
|
|
274
|
-
_See code: [src/commands/edit-algo.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
305
|
+
_See code: [src/commands/edit-algo.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-algo.ts)_
|
|
275
306
|
|
|
276
307
|
## `pontus-x_cli edit-asset-url DID URL`
|
|
277
308
|
|
|
@@ -295,7 +326,7 @@ EXAMPLES
|
|
|
295
326
|
$ pontus-x_cli edit-asset-url did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686 https://raw.githubusercontent.com/plotly/datasets/refs/heads/master/titanic.csv
|
|
296
327
|
```
|
|
297
328
|
|
|
298
|
-
_See code: [src/commands/edit-asset-url.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
329
|
+
_See code: [src/commands/edit-asset-url.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-asset-url.ts)_
|
|
299
330
|
|
|
300
331
|
## `pontus-x_cli edit-trusted-algos DID`
|
|
301
332
|
|
|
@@ -319,7 +350,7 @@ EXAMPLES
|
|
|
319
350
|
$ pontus-x_cli edit-trusted-algos did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a --algos did:op:8f9994d01975cadd0196a2f7f811ed850e5d02a7223e7c5a31faaebe7371c81a did:op:0b970c95211cb8ef4574383386376646081bb7eb949b2a75e1e2171ea25949a7
|
|
320
351
|
```
|
|
321
352
|
|
|
322
|
-
_See code: [src/commands/edit-trusted-algos.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
353
|
+
_See code: [src/commands/edit-trusted-algos.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/edit-trusted-algos.ts)_
|
|
323
354
|
|
|
324
355
|
## `pontus-x_cli export-private-key`
|
|
325
356
|
|
|
@@ -327,7 +358,7 @@ Export your private key as a JSON file, to use later with the login command or f
|
|
|
327
358
|
|
|
328
359
|
```
|
|
329
360
|
USAGE
|
|
330
|
-
$ pontus-x_cli export-private-key [-
|
|
361
|
+
$ pontus-x_cli export-private-key [-f <value>] [-p <value>] [-k <value>]
|
|
331
362
|
|
|
332
363
|
FLAGS
|
|
333
364
|
-f, --filepath=<value> File path to save the encrypted private key (default is <address>.json)
|
|
@@ -341,7 +372,7 @@ EXAMPLES
|
|
|
341
372
|
$ pontus-x_cli export-private-key
|
|
342
373
|
```
|
|
343
374
|
|
|
344
|
-
_See code: [src/commands/export-private-key.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
375
|
+
_See code: [src/commands/export-private-key.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/export-private-key.ts)_
|
|
345
376
|
|
|
346
377
|
## `pontus-x_cli generate-asset-credentials DID`
|
|
347
378
|
|
|
@@ -367,7 +398,7 @@ EXAMPLES
|
|
|
367
398
|
$ pontus-x_cli generate-asset-credentials -p ./CEP.data.json -d ./did.json -c certificate.key did:op:01f8bc1e797a854dc718bd7a802acb07c5fc39f706b03dd454bceb66be6828c6
|
|
368
399
|
```
|
|
369
400
|
|
|
370
|
-
_See code: [src/commands/generate-asset-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
401
|
+
_See code: [src/commands/generate-asset-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/generate-asset-credentials.ts)_
|
|
371
402
|
|
|
372
403
|
## `pontus-x_cli generate-did-web`
|
|
373
404
|
|
|
@@ -388,7 +419,7 @@ EXAMPLES
|
|
|
388
419
|
$ pontus-x_cli generate-did-web -d <https://compliance.agrospai.udl.cat> -c certificate-chain.crt
|
|
389
420
|
```
|
|
390
421
|
|
|
391
|
-
_See code: [src/commands/generate-did-web.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
422
|
+
_See code: [src/commands/generate-did-web.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/generate-did-web.ts)_
|
|
392
423
|
|
|
393
424
|
## `pontus-x_cli generate-participant-credentials`
|
|
394
425
|
|
|
@@ -411,7 +442,7 @@ EXAMPLES
|
|
|
411
442
|
$ pontus-x_cli generate-participant-credentials -p ./CEP.data.json -d ./did.json -c certificate.key
|
|
412
443
|
```
|
|
413
444
|
|
|
414
|
-
_See code: [src/commands/generate-participant-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
445
|
+
_See code: [src/commands/generate-participant-credentials.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/generate-participant-credentials.ts)_
|
|
415
446
|
|
|
416
447
|
## `pontus-x_cli get DID`
|
|
417
448
|
|
|
@@ -431,7 +462,7 @@ EXAMPLES
|
|
|
431
462
|
$ pontus-x_cli get did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a
|
|
432
463
|
```
|
|
433
464
|
|
|
434
|
-
_See code: [src/commands/get.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
465
|
+
_See code: [src/commands/get.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/get.ts)_
|
|
435
466
|
|
|
436
467
|
## `pontus-x_cli help [COMMAND]`
|
|
437
468
|
|
|
@@ -474,7 +505,7 @@ EXAMPLES
|
|
|
474
505
|
$ pontus-x_cli login d999baae98ac5246568fd726be8832c49626867d.json
|
|
475
506
|
```
|
|
476
507
|
|
|
477
|
-
_See code: [src/commands/login.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
508
|
+
_See code: [src/commands/login.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/login.ts)_
|
|
478
509
|
|
|
479
510
|
## `pontus-x_cli logout`
|
|
480
511
|
|
|
@@ -491,7 +522,7 @@ EXAMPLES
|
|
|
491
522
|
$ pontus-x_cli logout
|
|
492
523
|
```
|
|
493
524
|
|
|
494
|
-
_See code: [src/commands/logout.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
525
|
+
_See code: [src/commands/logout.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/logout.ts)_
|
|
495
526
|
|
|
496
527
|
## `pontus-x_cli publish PATH`
|
|
497
528
|
|
|
@@ -499,19 +530,23 @@ Publish the asset as instructed in the provided script folder.
|
|
|
499
530
|
|
|
500
531
|
```
|
|
501
532
|
USAGE
|
|
502
|
-
$ pontus-x_cli publish PATH -p <value> [
|
|
533
|
+
$ pontus-x_cli publish PATH [--dry-run] [-m <value>] [-p <value>] [-r]
|
|
503
534
|
|
|
504
535
|
ARGUMENTS
|
|
505
|
-
PATH Path to
|
|
536
|
+
PATH Path to find a JSON/YAML or TS file describing the asset to publish
|
|
506
537
|
|
|
507
538
|
FLAGS
|
|
508
|
-
-
|
|
539
|
+
-m, --manifest=<value> [default: ./manifest.yaml] Path to the manifest file
|
|
540
|
+
-p, --provider=<value> [default: https://provider.agrospai.udl.cat] The Provider URL
|
|
541
|
+
-r, --recursive Recursively publish assets in a directory (only for JSON/YAML files)
|
|
509
542
|
--dry-run Dry run the publishing process
|
|
510
543
|
|
|
511
544
|
DESCRIPTION
|
|
512
545
|
Publish the asset as instructed in the provided script folder.
|
|
513
546
|
|
|
514
547
|
EXAMPLES
|
|
548
|
+
$ pontus-x_cli publish samples/publish/algo/
|
|
549
|
+
|
|
515
550
|
$ pontus-x_cli publish samples/publish/algo/spec.json
|
|
516
551
|
|
|
517
552
|
$ pontus-x_cli publish samples/publish/algo/spec.yaml
|
|
@@ -519,21 +554,39 @@ EXAMPLES
|
|
|
519
554
|
$ pontus-x_cli publish samples/publish/algo/index.ts
|
|
520
555
|
```
|
|
521
556
|
|
|
522
|
-
_See code: [src/commands/publish.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
557
|
+
_See code: [src/commands/publish.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/publish.ts)_
|
|
523
558
|
|
|
524
|
-
## `pontus-x_cli
|
|
525
|
-
|
|
526
|
-
Publisher revocation of one or more owned DIDs
|
|
559
|
+
## `pontus-x_cli render [DID]`
|
|
527
560
|
|
|
528
561
|
```
|
|
529
562
|
USAGE
|
|
530
|
-
$ pontus-x_cli
|
|
563
|
+
$ pontus-x_cli render [DID] [-d <value>] [-t <value>...] [-a]
|
|
531
564
|
|
|
532
565
|
ARGUMENTS
|
|
533
|
-
|
|
566
|
+
[DID] Dataset DID
|
|
534
567
|
|
|
535
568
|
FLAGS
|
|
536
|
-
-
|
|
569
|
+
-a, --onlyAccess Only render datasets with an access service
|
|
570
|
+
-d, --dst=<value> [default: rendered] Destination folder to save the rendered specs
|
|
571
|
+
-t, --tags=<value>... Tags to filter datasets (they must have all the provided tags)
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
_See code: [src/commands/render.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/render.ts)_
|
|
575
|
+
|
|
576
|
+
## `pontus-x_cli revoke`
|
|
577
|
+
|
|
578
|
+
Publisher revocation of one or more owned DIDs
|
|
579
|
+
|
|
580
|
+
```
|
|
581
|
+
USAGE
|
|
582
|
+
$ pontus-x_cli revoke [-d <value>...] [-m <value>] [-p <value>...] [-r] [-y]
|
|
583
|
+
|
|
584
|
+
FLAGS
|
|
585
|
+
-d, --dids=<value>... DID to revoke
|
|
586
|
+
-m, --manifest=<value> [default: ./manifest.yaml] Path to the manifest file
|
|
587
|
+
-p, --paths=<value>... Path to find a JSON/YAML file describing the assets to revoke
|
|
588
|
+
-r, --recursive Recursively revoke assets in a directory (only for JSON/YAML files)
|
|
589
|
+
-y, --yes Skip confirmation prompt
|
|
537
590
|
|
|
538
591
|
DESCRIPTION
|
|
539
592
|
Publisher revocation of one or more owned DIDs
|
|
@@ -542,7 +595,7 @@ EXAMPLES
|
|
|
542
595
|
$ pontus-x_cli revoke did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a did:op:abcee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7b
|
|
543
596
|
```
|
|
544
597
|
|
|
545
|
-
_See code: [src/commands/revoke.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
598
|
+
_See code: [src/commands/revoke.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/revoke.ts)_
|
|
546
599
|
|
|
547
600
|
## `pontus-x_cli self-description DID SDURL`
|
|
548
601
|
|
|
@@ -566,7 +619,7 @@ EXAMPLES
|
|
|
566
619
|
$ pontus-x_cli self-description did:op:d22954f2cbf6a85c897ce605c275cc786e099592cc59e3b7dd66b93e784bed8c https://example.com/self-description.json
|
|
567
620
|
```
|
|
568
621
|
|
|
569
|
-
_See code: [src/commands/self-description.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.
|
|
622
|
+
_See code: [src/commands/self-description.ts](https://github.com/AgrospAI/pontus-x_cli/blob/v1.1.4/src/commands/self-description.ts)_
|
|
570
623
|
<!-- commandsstop -->
|
|
571
624
|
|
|
572
625
|
# Useful information
|
|
@@ -615,6 +668,12 @@ npm run build
|
|
|
615
668
|
./bin/run.js COMMAND
|
|
616
669
|
```
|
|
617
670
|
|
|
671
|
+
## Build and run the CLI in one command
|
|
672
|
+
|
|
673
|
+
```bash
|
|
674
|
+
npm run dev -- COMMAND
|
|
675
|
+
```
|
|
676
|
+
|
|
618
677
|
### Global installation
|
|
619
678
|
|
|
620
679
|
```sh
|
|
@@ -656,18 +715,20 @@ test/
|
|
|
656
715
|
└── write/
|
|
657
716
|
```
|
|
658
717
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
718
|
+
- **auth**: commands related to authentication.
|
|
719
|
+
- **read**: commands that do not make modifications in the blockchain.
|
|
720
|
+
- **write**: commands that make modifications in the blockchain. All write commands are run sequentially to avoid conflicts.
|
|
662
721
|
|
|
663
722
|
### Initialization
|
|
664
723
|
|
|
665
|
-
Because the tests interact with the blockchain, we need to first deploy some assets manually and keep track of their DIDs
|
|
724
|
+
Because the tests interact with the blockchain, we need to first deploy some assets manually and keep track of their DIDs. To do that, you can run:
|
|
666
725
|
|
|
667
726
|
```sh
|
|
668
727
|
npm run test:init
|
|
669
728
|
```
|
|
670
729
|
|
|
730
|
+
There are some tests that need the `certificate.key` to be present in the `samples/data` folder. You can obtain it following the instructions in the [How to obtain the certificate key](#how-to-obtain-the-certificate-key) section.
|
|
731
|
+
|
|
671
732
|
### Clean up
|
|
672
733
|
|
|
673
734
|
Whenever you want to clean up the deployed assets in the blockchain, you can run:
|
package/bin/dev.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const oclif = await import(
|
|
6
|
-
await oclif.execute({ development: true, dir: __dirname })
|
|
7
|
-
})()
|
|
3
|
+
(async () => {
|
|
4
|
+
require("dotenv").config();
|
|
5
|
+
const oclif = await import("@oclif/core");
|
|
6
|
+
await oclif.execute({ development: true, dir: __dirname });
|
|
7
|
+
})();
|
package/bin/run.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// eslint-disable-next-line unicorn/prefer-top-level-await
|
|
4
3
|
(async () => {
|
|
5
|
-
require(
|
|
6
|
-
const oclif = await import(
|
|
7
|
-
await oclif.execute({ dir: __dirname })
|
|
8
|
-
})()
|
|
4
|
+
require("dotenv").config();
|
|
5
|
+
const oclif = await import("@oclif/core");
|
|
6
|
+
await oclif.execute({ dir: __dirname });
|
|
7
|
+
})();
|
package/dist/commands/access.js
CHANGED
|
@@ -13,11 +13,11 @@ class Access extends core_1.Command {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
Access.args = {
|
|
16
|
-
did: core_1.Args.string({ description:
|
|
16
|
+
did: core_1.Args.string({ description: "DID of the asset", required: true }),
|
|
17
17
|
};
|
|
18
|
-
Access.description =
|
|
18
|
+
Access.description = "Access an asset that can be downloaded given its DID";
|
|
19
19
|
Access.examples = [
|
|
20
|
-
|
|
20
|
+
"<%= config.bin %> <%= command.id %> did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686",
|
|
21
21
|
];
|
|
22
22
|
exports.default = Access;
|
|
23
23
|
//# sourceMappingURL=access.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access.js","sourceRoot":"","sources":["../../src/commands/access.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"access.js","sourceRoot":"","sources":["../../src/commands/access.ts"],"names":[],"mappings":";;AAAA,sCAA4C;AAC5C,mDAAgD;AAEhD,MAAqB,MAAO,SAAQ,cAAO;IASzC,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC,yCAAyC,GAAG,EAAE,CAAC,CAAC;QACzD,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,uBAAU,CAAC,OAAO,EAAE,CAAC;QAChD,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,GAAG,CAAC,iBAAiB,SAAS,IAAI,CAAC,CAAC;IAC3C,CAAC;;AAfM,WAAI,GAAG;IACZ,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACtE,CAAC;AACK,kBAAW,GAAG,sDAAsD,CAAC;AACrE,eAAQ,GAAsB;IACnC,6GAA6G;CAC9G,CAAC;kBAPiB,MAAM"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Command } from
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
2
|
export default class ChangePrice extends Command {
|
|
3
3
|
static args: {
|
|
4
4
|
did: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
5
5
|
newPrice: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
6
|
};
|
|
7
|
+
static description: string;
|
|
8
|
+
static examples: Command.Example[];
|
|
7
9
|
static flags: {
|
|
8
10
|
yes: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
11
|
};
|
|
10
|
-
static description: string;
|
|
11
|
-
static examples: Command.Example[];
|
|
12
12
|
run(): Promise<void>;
|
|
13
13
|
}
|
|
@@ -12,8 +12,9 @@ class ChangePrice extends core_1.Command {
|
|
|
12
12
|
const { args, flags } = await this.parse(ChangePrice);
|
|
13
13
|
const { did, newPrice } = args;
|
|
14
14
|
const connection = await connection_1.Connection.connect();
|
|
15
|
-
const newPriceNumber = Number.parseFloat(newPrice.replace(
|
|
16
|
-
if (flags.yes ||
|
|
15
|
+
const newPriceNumber = Number.parseFloat(newPrice.replace(",", "."));
|
|
16
|
+
if (flags.yes ||
|
|
17
|
+
readline_sync_1.default.keyInYNStrict(`Set the price to ${newPriceNumber.toString()} for asset ${did}? `)) {
|
|
17
18
|
try {
|
|
18
19
|
const aquariusAsset = await connection.nautilus.getAquariusAsset(did);
|
|
19
20
|
const serviceId = (_b = (_a = aquariusAsset.services) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.id;
|
|
@@ -27,23 +28,23 @@ class ChangePrice extends core_1.Command {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
ChangePrice.args = {
|
|
30
|
-
did: core_1.Args.string({ description:
|
|
31
|
+
did: core_1.Args.string({ description: "DID of the asset", required: true }),
|
|
31
32
|
newPrice: core_1.Args.string({
|
|
32
|
-
description:
|
|
33
|
+
description: "New price for the asset",
|
|
33
34
|
required: true,
|
|
34
35
|
}),
|
|
35
36
|
};
|
|
37
|
+
ChangePrice.description = "Change the price keeping the existing currency for an asset with the given DID";
|
|
38
|
+
ChangePrice.examples = [
|
|
39
|
+
"<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10",
|
|
40
|
+
];
|
|
36
41
|
ChangePrice.flags = {
|
|
37
42
|
yes: core_1.Flags.boolean({
|
|
38
|
-
char:
|
|
39
|
-
description: 'Automatic yes to prompts',
|
|
40
|
-
required: false,
|
|
43
|
+
char: "y",
|
|
41
44
|
default: false,
|
|
45
|
+
description: "Automatic yes to prompts",
|
|
46
|
+
required: false,
|
|
42
47
|
}),
|
|
43
48
|
};
|
|
44
|
-
ChangePrice.description = 'Change the price keeping the existing currency for an asset with the given DID';
|
|
45
|
-
ChangePrice.examples = [
|
|
46
|
-
'<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10',
|
|
47
|
-
];
|
|
48
49
|
exports.default = ChangePrice;
|
|
49
50
|
//# sourceMappingURL=change-price.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-price.js","sourceRoot":"","sources":["../../src/commands/change-price.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"change-price.js","sourceRoot":"","sources":["../../src/commands/change-price.ts"],"names":[],"mappings":";;;;;AAAA,sCAAmD;AACnD,kEAAyC;AACzC,mDAAgD;AAEhD,MAAqB,WAAY,SAAQ,cAAO;IAsB9C,KAAK,CAAC,GAAG;;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACtD,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;QAC/B,MAAM,UAAU,GAAG,MAAM,uBAAU,CAAC,OAAO,EAAE,CAAC;QAC9C,MAAM,cAAc,GAAW,MAAM,CAAC,UAAU,CAC9C,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAC3B,CAAC;QACF,IACE,KAAK,CAAC,GAAG;YACT,uBAAY,CAAC,aAAa,CACxB,oBAAoB,cAAc,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CACnE,EACD,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;gBACtE,MAAM,SAAS,GAAG,MAAA,MAAA,aAAa,CAAC,QAAQ,0CAAG,CAAC,CAAC,0CAAE,EAAE,CAAC;gBAClD,MAAM,EAAE,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC,eAAe,CAClD,aAAa,EACb,SAAS,EACT,cAAc,CAAC,QAAQ,EAAE,CAC1B,CAAC;gBACF,IAAI,CAAC,GAAG,CACN,yCAAyC,UAAU,CAAC,aAAa,CAAC,WAAW,OAAO,EAAE,CAAC,eAAe,IAAI,CAC3G,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,KAAK,CAAC,6BAA6B,KAAK,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC;;AAjDM,gBAAI,GAAG;IACZ,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrE,QAAQ,EAAE,WAAI,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;AACK,uBAAW,GAChB,gFAAgF,CAAC;AAC5E,oBAAQ,GAAsB;IACnC,gHAAgH;CACjH,CAAC;AACK,iBAAK,GAAG;IACb,GAAG,EAAE,YAAK,CAAC,OAAO,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,KAAK;KAChB,CAAC;CACH,CAAC;kBApBiB,WAAW"}
|
|
@@ -3,24 +3,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const core_1 = require("@oclif/core");
|
|
7
|
-
const axios_1 = __importDefault(require("axios"));
|
|
8
6
|
const node_fs_1 = require("node:fs");
|
|
9
7
|
const node_path_1 = require("node:path");
|
|
8
|
+
const core_1 = require("@oclif/core");
|
|
9
|
+
const axios_1 = __importDefault(require("axios"));
|
|
10
10
|
class CheckParticipantCompliance extends core_1.Command {
|
|
11
11
|
async run() {
|
|
12
12
|
const { flags } = await this.parse(CheckParticipantCompliance);
|
|
13
|
-
const complianceService =
|
|
13
|
+
const complianceService = "https://compliance.lab.gaia-x.eu/v1/api/credential-offers";
|
|
14
14
|
const folder = (0, node_path_1.dirname)(flags.participant);
|
|
15
|
-
const participantData = JSON.parse((0, node_fs_1.readFileSync)(flags.participant,
|
|
16
|
-
const vp = JSON.parse((0, node_fs_1.readFileSync)(flags.vp,
|
|
15
|
+
const participantData = JSON.parse((0, node_fs_1.readFileSync)(flags.participant, "utf8"));
|
|
16
|
+
const vp = JSON.parse((0, node_fs_1.readFileSync)(flags.vp, "utf8"));
|
|
17
17
|
await axios_1.default
|
|
18
18
|
.post(`${complianceService}?` +
|
|
19
19
|
`vcid=https://${participantData.issuer_domain}/.well-known/${participantData.participant_name}.compliance.json`, vp)
|
|
20
20
|
.then((response) => {
|
|
21
21
|
if (response.status === 201) {
|
|
22
22
|
const compliance = response.data;
|
|
23
|
-
(0, node_fs_1.writeFileSync)((0, node_path_1.resolve)(folder, participantData.participant_name
|
|
23
|
+
(0, node_fs_1.writeFileSync)((0, node_path_1.resolve)(folder, `${participantData.participant_name}.compliance.json`), JSON.stringify(compliance, null, 2), "utf8");
|
|
24
24
|
console.log(`Gaia-X Compliance verified for ${participantData.participant_legal_name} credentials ` +
|
|
25
25
|
`and stored in ${participantData.participant_name}.compliance.json`);
|
|
26
26
|
}
|
|
@@ -37,16 +37,18 @@ class CheckParticipantCompliance extends core_1.Command {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
CheckParticipantCompliance.description =
|
|
41
|
-
CheckParticipantCompliance.examples = [
|
|
40
|
+
CheckParticipantCompliance.description = "Use Gaia-X Compliance to check a participant Verifiable Presentation";
|
|
41
|
+
CheckParticipantCompliance.examples = [
|
|
42
|
+
"<%= config.bin %> <%= command.id %> -p ./CEP.data.json --vp ./CEP.vp.json",
|
|
43
|
+
];
|
|
42
44
|
CheckParticipantCompliance.flags = {
|
|
43
45
|
participant: core_1.Flags.string({
|
|
44
|
-
char:
|
|
45
|
-
description:
|
|
46
|
+
char: "p",
|
|
47
|
+
description: "Path to the JSON file including the required participant data",
|
|
46
48
|
required: true,
|
|
47
49
|
}),
|
|
48
50
|
vp: core_1.Flags.string({
|
|
49
|
-
description:
|
|
51
|
+
description: "Path to the participant Verifiable Presentation file",
|
|
50
52
|
required: true,
|
|
51
53
|
}),
|
|
52
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-participant-compliance.js","sourceRoot":"","sources":["../../src/commands/check-participant-compliance.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"check-participant-compliance.js","sourceRoot":"","sources":["../../src/commands/check-participant-compliance.ts"],"names":[],"mappings":";;;;;AAAA,qCAAsD;AACtD,yCAA6C;AAC7C,sCAA6C;AAC7C,kDAA+C;AAE/C,MAAqB,0BAA2B,SAAQ,cAAO;IAmB7D,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAC/D,MAAM,iBAAiB,GACrB,2DAA2D,CAAC;QAC9D,MAAM,MAAM,GAAG,IAAA,mBAAO,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC1C,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;QAC5E,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,KAAK,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;QAEtD,MAAM,eAAK;aACR,IAAI,CACH,GAAG,iBAAiB,GAAG;YACrB,gBAAgB,eAAe,CAAC,aAAa,gBAAgB,eAAe,CAAC,gBAAgB,kBAAkB,EACjH,EAAE,CACH;aACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YACjB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;gBAC5B,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC;gBACjC,IAAA,uBAAa,EACX,IAAA,mBAAO,EACL,MAAM,EACN,GAAG,eAAe,CAAC,gBAAgB,kBAAkB,CACtD,EACD,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,EACnC,MAAM,CACP,CAAC;gBACF,OAAO,CAAC,GAAG,CACT,kCAAkC,eAAe,CAAC,sBAAsB,eAAe;oBACrF,iBAAiB,eAAe,CAAC,gBAAgB,kBAAkB,CACtE,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,KAAK,CACX,mCAAmC,eAAe,CAAC,sBAAsB,EAAE,CAC5E,CAAC;gBACF,OAAO,CAAC,KAAK,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,CAAC;YAChC,CAAC;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;;YACf,OAAO,CAAC,KAAK,CACX,mCAAmC,eAAe,CAAC,sBAAsB,EAAE,CAC5E,CAAC;YACF,OAAO,CAAC,KAAK,CAAC,MAAC,KAAoB,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAC;YACpD,MAAM,KAAK,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC;;AA7DM,sCAAW,GAChB,sEAAsE,CAAC;AAClE,mCAAQ,GAAsB;IACnC,2EAA2E;CAC5E,CAAC;AACK,gCAAK,GAAG;IACb,WAAW,EAAE,YAAK,CAAC,MAAM,CAAC;QACxB,IAAI,EAAE,GAAG;QACT,WAAW,EACT,+DAA+D;QACjE,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,EAAE,EAAE,YAAK,CAAC,MAAM,CAAC;QACf,WAAW,EAAE,sDAAsD;QACnE,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;kBAjBiB,0BAA0B"}
|
|
@@ -14,7 +14,7 @@ class ComputeResults extends core_1.Command {
|
|
|
14
14
|
if (computeResultUrl)
|
|
15
15
|
this.log(`Compute results available from: ${computeResultUrl}\n`);
|
|
16
16
|
else
|
|
17
|
-
this.log(
|
|
17
|
+
this.log("No results available yet\n");
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
this.error(`Error starting compute: ${error}`);
|
|
@@ -22,18 +22,18 @@ class ComputeResults extends core_1.Command {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
ComputeResults.args = {
|
|
25
|
-
jobId: core_1.Args.string({ description:
|
|
25
|
+
jobId: core_1.Args.string({ description: "Compute job ID", required: true }),
|
|
26
26
|
};
|
|
27
|
-
ComputeResults.description =
|
|
27
|
+
ComputeResults.description = "Get the compute job results.";
|
|
28
28
|
ComputeResults.examples = [
|
|
29
|
-
|
|
29
|
+
"<%= config.bin %> <%= command.id %> 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat",
|
|
30
30
|
];
|
|
31
31
|
ComputeResults.flags = {
|
|
32
32
|
provider: core_1.Flags.string({
|
|
33
|
-
char:
|
|
34
|
-
|
|
33
|
+
char: "p",
|
|
34
|
+
default: "https://provider.agrospai.udl.cat",
|
|
35
|
+
description: "The Provider URL",
|
|
35
36
|
required: true,
|
|
36
|
-
default: 'https://provider.agrospai.udl.cat',
|
|
37
37
|
}),
|
|
38
38
|
};
|
|
39
39
|
exports.default = ComputeResults;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-results.js","sourceRoot":"","sources":["../../src/commands/compute-results.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"compute-results.js","sourceRoot":"","sources":["../../src/commands/compute-results.ts"],"names":[],"mappings":";;AAAA,sCAAmD;AACnD,mDAAgD;AAEhD,MAAqB,cAAe,SAAQ,cAAO;IAiBjD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACzD,MAAM,UAAU,GAAG,MAAM,uBAAU,CAAC,OAAO,EAAE,CAAC;QAC9C,IAAI,CAAC;YACH,MAAM,gBAAgB,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAClE,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,WAAW,EAAE,KAAK,CAAC,QAAQ;aAC5B,CAAC,CAAC;YACH,IAAI,gBAAgB;gBAClB,IAAI,CAAC,GAAG,CAAC,mCAAmC,gBAAgB,IAAI,CAAC,CAAC;;gBAC/D,IAAI,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAC9C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,CAAC,2BAA2B,KAAK,EAAE,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;;AA9BM,mBAAI,GAAG;IACZ,KAAK,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;CACtE,CAAC;AACK,0BAAW,GAAG,8BAA8B,CAAC;AAC7C,uBAAQ,GAAsB;IACnC,2GAA2G;CAC5G,CAAC;AACK,oBAAK,GAAG;IACb,QAAQ,EAAE,YAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;kBAfiB,cAAc"}
|