@super-protocol/sp-cli 0.0.2-alpha.1 → 0.0.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -49
- package/dist/commands/account/info.d.ts +21 -0
- package/dist/commands/account/info.js +43 -0
- package/dist/commands/auth/login.d.ts +1 -10
- package/dist/commands/auth/login.js +23 -75
- package/dist/commands/base.d.ts +2 -4
- package/dist/commands/base.js +8 -10
- package/dist/commands/config/add.js +9 -5
- package/dist/commands/config/base.d.ts +4 -3
- package/dist/commands/config/base.js +12 -14
- package/dist/commands/config/create.js +4 -4
- package/dist/commands/config/list.js +2 -2
- package/dist/commands/config/use.js +5 -3
- package/dist/commands/storage/base.d.ts +8 -0
- package/dist/commands/storage/base.js +12 -0
- package/dist/commands/storage/create.d.ts +15 -0
- package/dist/commands/storage/create.js +169 -0
- package/dist/commands/storage/select.d.ts +9 -0
- package/dist/commands/storage/select.js +46 -0
- package/dist/commands/storage/update.d.ts +16 -0
- package/dist/commands/storage/update.js +244 -0
- package/dist/config/config.schema.d.ts +1 -0
- package/dist/config/config.schema.js +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +2 -0
- package/dist/lib/container.d.ts +6 -7
- package/dist/lib/container.js +26 -26
- package/dist/managers/account-manager.js +12 -2
- package/dist/managers/config-file-manager.d.ts +1 -1
- package/dist/managers/config-file-manager.js +12 -7
- package/dist/middlewares/auth-middleware.js +5 -1
- package/dist/services/auth.service.d.ts +24 -0
- package/dist/services/auth.service.js +93 -0
- package/dist/services/storage.service.d.ts +47 -0
- package/dist/services/storage.service.js +179 -0
- package/oclif.manifest.json +217 -137
- package/package.json +9 -3
package/oclif.manifest.json
CHANGED
|
@@ -19,12 +19,39 @@
|
|
|
19
19
|
"hasDynamicHelp": false,
|
|
20
20
|
"multiple": false,
|
|
21
21
|
"type": "option"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"hasDynamicHelp": false,
|
|
25
|
+
"hiddenAliases": [],
|
|
26
|
+
"id": "base",
|
|
27
|
+
"pluginAlias": "@super-protocol/sp-cli",
|
|
28
|
+
"pluginName": "@super-protocol/sp-cli",
|
|
29
|
+
"pluginType": "core",
|
|
30
|
+
"strict": true,
|
|
31
|
+
"enableJsonFlag": true,
|
|
32
|
+
"isESM": true,
|
|
33
|
+
"relativePath": [
|
|
34
|
+
"dist",
|
|
35
|
+
"commands",
|
|
36
|
+
"base.js"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"account:info": {
|
|
40
|
+
"aliases": [],
|
|
41
|
+
"args": {},
|
|
42
|
+
"flags": {
|
|
43
|
+
"json": {
|
|
44
|
+
"description": "Format output as json.",
|
|
45
|
+
"helpGroup": "GLOBAL",
|
|
46
|
+
"name": "json",
|
|
47
|
+
"allowNo": false,
|
|
48
|
+
"type": "boolean"
|
|
22
49
|
},
|
|
23
|
-
"
|
|
50
|
+
"config": {
|
|
24
51
|
"helpGroup": "GLOBAL",
|
|
25
|
-
"name": "
|
|
52
|
+
"name": "config",
|
|
26
53
|
"required": false,
|
|
27
|
-
"summary": "Specify
|
|
54
|
+
"summary": "Specify config file.",
|
|
28
55
|
"hasDynamicHelp": false,
|
|
29
56
|
"multiple": false,
|
|
30
57
|
"type": "option"
|
|
@@ -32,7 +59,7 @@
|
|
|
32
59
|
},
|
|
33
60
|
"hasDynamicHelp": false,
|
|
34
61
|
"hiddenAliases": [],
|
|
35
|
-
"id": "
|
|
62
|
+
"id": "account:info",
|
|
36
63
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
37
64
|
"pluginName": "@super-protocol/sp-cli",
|
|
38
65
|
"pluginType": "core",
|
|
@@ -42,7 +69,8 @@
|
|
|
42
69
|
"relativePath": [
|
|
43
70
|
"dist",
|
|
44
71
|
"commands",
|
|
45
|
-
"
|
|
72
|
+
"account",
|
|
73
|
+
"info.js"
|
|
46
74
|
]
|
|
47
75
|
},
|
|
48
76
|
"auth:login": {
|
|
@@ -68,15 +96,6 @@
|
|
|
68
96
|
"hasDynamicHelp": false,
|
|
69
97
|
"multiple": false,
|
|
70
98
|
"type": "option"
|
|
71
|
-
},
|
|
72
|
-
"url": {
|
|
73
|
-
"helpGroup": "GLOBAL",
|
|
74
|
-
"name": "url",
|
|
75
|
-
"required": false,
|
|
76
|
-
"summary": "Specify provider base URL.",
|
|
77
|
-
"hasDynamicHelp": false,
|
|
78
|
-
"multiple": false,
|
|
79
|
-
"type": "option"
|
|
80
99
|
}
|
|
81
100
|
},
|
|
82
101
|
"hasDynamicHelp": false,
|
|
@@ -114,15 +133,6 @@
|
|
|
114
133
|
"hasDynamicHelp": false,
|
|
115
134
|
"multiple": false,
|
|
116
135
|
"type": "option"
|
|
117
|
-
},
|
|
118
|
-
"url": {
|
|
119
|
-
"helpGroup": "GLOBAL",
|
|
120
|
-
"name": "url",
|
|
121
|
-
"required": false,
|
|
122
|
-
"summary": "Specify provider base URL.",
|
|
123
|
-
"hasDynamicHelp": false,
|
|
124
|
-
"multiple": false,
|
|
125
|
-
"type": "option"
|
|
126
136
|
}
|
|
127
137
|
},
|
|
128
138
|
"hasDynamicHelp": false,
|
|
@@ -164,24 +174,6 @@
|
|
|
164
174
|
"allowNo": false,
|
|
165
175
|
"type": "boolean"
|
|
166
176
|
},
|
|
167
|
-
"config": {
|
|
168
|
-
"helpGroup": "GLOBAL",
|
|
169
|
-
"name": "config",
|
|
170
|
-
"required": false,
|
|
171
|
-
"summary": "Specify config file.",
|
|
172
|
-
"hasDynamicHelp": false,
|
|
173
|
-
"multiple": false,
|
|
174
|
-
"type": "option"
|
|
175
|
-
},
|
|
176
|
-
"url": {
|
|
177
|
-
"helpGroup": "GLOBAL",
|
|
178
|
-
"name": "url",
|
|
179
|
-
"required": false,
|
|
180
|
-
"summary": "Specify provider base URL.",
|
|
181
|
-
"hasDynamicHelp": false,
|
|
182
|
-
"multiple": false,
|
|
183
|
-
"type": "option"
|
|
184
|
-
},
|
|
185
177
|
"name": {
|
|
186
178
|
"char": "n",
|
|
187
179
|
"description": "Custom name for the imported configuration",
|
|
@@ -224,24 +216,6 @@
|
|
|
224
216
|
"name": "json",
|
|
225
217
|
"allowNo": false,
|
|
226
218
|
"type": "boolean"
|
|
227
|
-
},
|
|
228
|
-
"config": {
|
|
229
|
-
"helpGroup": "GLOBAL",
|
|
230
|
-
"name": "config",
|
|
231
|
-
"required": false,
|
|
232
|
-
"summary": "Specify config file.",
|
|
233
|
-
"hasDynamicHelp": false,
|
|
234
|
-
"multiple": false,
|
|
235
|
-
"type": "option"
|
|
236
|
-
},
|
|
237
|
-
"url": {
|
|
238
|
-
"helpGroup": "GLOBAL",
|
|
239
|
-
"name": "url",
|
|
240
|
-
"required": false,
|
|
241
|
-
"summary": "Specify provider base URL.",
|
|
242
|
-
"hasDynamicHelp": false,
|
|
243
|
-
"multiple": false,
|
|
244
|
-
"type": "option"
|
|
245
219
|
}
|
|
246
220
|
},
|
|
247
221
|
"hasDynamicHelp": false,
|
|
@@ -276,11 +250,11 @@
|
|
|
276
250
|
"allowNo": false,
|
|
277
251
|
"type": "boolean"
|
|
278
252
|
},
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"
|
|
283
|
-
"
|
|
253
|
+
"name": {
|
|
254
|
+
"char": "n",
|
|
255
|
+
"description": "Configuration name",
|
|
256
|
+
"name": "name",
|
|
257
|
+
"required": true,
|
|
284
258
|
"hasDynamicHelp": false,
|
|
285
259
|
"multiple": false,
|
|
286
260
|
"type": "option"
|
|
@@ -293,15 +267,6 @@
|
|
|
293
267
|
"multiple": false,
|
|
294
268
|
"type": "option"
|
|
295
269
|
},
|
|
296
|
-
"name": {
|
|
297
|
-
"char": "n",
|
|
298
|
-
"description": "Configuration name",
|
|
299
|
-
"name": "name",
|
|
300
|
-
"required": true,
|
|
301
|
-
"hasDynamicHelp": false,
|
|
302
|
-
"multiple": false,
|
|
303
|
-
"type": "option"
|
|
304
|
-
},
|
|
305
270
|
"yes": {
|
|
306
271
|
"char": "y",
|
|
307
272
|
"description": "Switch to new config",
|
|
@@ -343,24 +308,6 @@
|
|
|
343
308
|
"allowNo": false,
|
|
344
309
|
"type": "boolean"
|
|
345
310
|
},
|
|
346
|
-
"config": {
|
|
347
|
-
"helpGroup": "GLOBAL",
|
|
348
|
-
"name": "config",
|
|
349
|
-
"required": false,
|
|
350
|
-
"summary": "Specify config file.",
|
|
351
|
-
"hasDynamicHelp": false,
|
|
352
|
-
"multiple": false,
|
|
353
|
-
"type": "option"
|
|
354
|
-
},
|
|
355
|
-
"url": {
|
|
356
|
-
"helpGroup": "GLOBAL",
|
|
357
|
-
"name": "url",
|
|
358
|
-
"required": false,
|
|
359
|
-
"summary": "Specify provider base URL.",
|
|
360
|
-
"hasDynamicHelp": false,
|
|
361
|
-
"multiple": false,
|
|
362
|
-
"type": "option"
|
|
363
|
-
},
|
|
364
311
|
"force": {
|
|
365
312
|
"char": "f",
|
|
366
313
|
"description": "Force deletion without confirmation",
|
|
@@ -405,6 +352,130 @@
|
|
|
405
352
|
"<%= config.bin %> <%= command.id %> add ./config.json - Import configuration from file",
|
|
406
353
|
"<%= config.bin %> <%= command.id %> delete - Delete a configuration"
|
|
407
354
|
],
|
|
355
|
+
"flags": {
|
|
356
|
+
"json": {
|
|
357
|
+
"description": "Format output as json.",
|
|
358
|
+
"helpGroup": "GLOBAL",
|
|
359
|
+
"name": "json",
|
|
360
|
+
"allowNo": false,
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"hasDynamicHelp": false,
|
|
365
|
+
"hiddenAliases": [],
|
|
366
|
+
"id": "config",
|
|
367
|
+
"pluginAlias": "@super-protocol/sp-cli",
|
|
368
|
+
"pluginName": "@super-protocol/sp-cli",
|
|
369
|
+
"pluginType": "core",
|
|
370
|
+
"strict": true,
|
|
371
|
+
"enableJsonFlag": true,
|
|
372
|
+
"isESM": true,
|
|
373
|
+
"relativePath": [
|
|
374
|
+
"dist",
|
|
375
|
+
"commands",
|
|
376
|
+
"config",
|
|
377
|
+
"index.js"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
"config:list": {
|
|
381
|
+
"aliases": [],
|
|
382
|
+
"args": {},
|
|
383
|
+
"description": "List all configurations",
|
|
384
|
+
"examples": [
|
|
385
|
+
"<%= config.bin %> <%= command.id %>"
|
|
386
|
+
],
|
|
387
|
+
"flags": {
|
|
388
|
+
"json": {
|
|
389
|
+
"description": "Format output as json.",
|
|
390
|
+
"helpGroup": "GLOBAL",
|
|
391
|
+
"name": "json",
|
|
392
|
+
"allowNo": false,
|
|
393
|
+
"type": "boolean"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"hasDynamicHelp": false,
|
|
397
|
+
"hiddenAliases": [],
|
|
398
|
+
"id": "config:list",
|
|
399
|
+
"pluginAlias": "@super-protocol/sp-cli",
|
|
400
|
+
"pluginName": "@super-protocol/sp-cli",
|
|
401
|
+
"pluginType": "core",
|
|
402
|
+
"strict": true,
|
|
403
|
+
"enableJsonFlag": true,
|
|
404
|
+
"isESM": true,
|
|
405
|
+
"relativePath": [
|
|
406
|
+
"dist",
|
|
407
|
+
"commands",
|
|
408
|
+
"config",
|
|
409
|
+
"list.js"
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
"config:show": {
|
|
413
|
+
"aliases": [],
|
|
414
|
+
"args": {},
|
|
415
|
+
"description": "Show current configuration",
|
|
416
|
+
"examples": [
|
|
417
|
+
"<%= config.bin %> <%= command.id %>"
|
|
418
|
+
],
|
|
419
|
+
"flags": {
|
|
420
|
+
"json": {
|
|
421
|
+
"description": "Format output as json.",
|
|
422
|
+
"helpGroup": "GLOBAL",
|
|
423
|
+
"name": "json",
|
|
424
|
+
"allowNo": false,
|
|
425
|
+
"type": "boolean"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"hasDynamicHelp": false,
|
|
429
|
+
"hiddenAliases": [],
|
|
430
|
+
"id": "config:show",
|
|
431
|
+
"pluginAlias": "@super-protocol/sp-cli",
|
|
432
|
+
"pluginName": "@super-protocol/sp-cli",
|
|
433
|
+
"pluginType": "core",
|
|
434
|
+
"strict": true,
|
|
435
|
+
"enableJsonFlag": true,
|
|
436
|
+
"isESM": true,
|
|
437
|
+
"relativePath": [
|
|
438
|
+
"dist",
|
|
439
|
+
"commands",
|
|
440
|
+
"config",
|
|
441
|
+
"show.js"
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
"config:use": {
|
|
445
|
+
"aliases": [],
|
|
446
|
+
"args": {},
|
|
447
|
+
"description": "Switch to a different configuration file",
|
|
448
|
+
"examples": [
|
|
449
|
+
"<%= config.bin %> <%= command.id %>"
|
|
450
|
+
],
|
|
451
|
+
"flags": {
|
|
452
|
+
"json": {
|
|
453
|
+
"description": "Format output as json.",
|
|
454
|
+
"helpGroup": "GLOBAL",
|
|
455
|
+
"name": "json",
|
|
456
|
+
"allowNo": false,
|
|
457
|
+
"type": "boolean"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"hasDynamicHelp": false,
|
|
461
|
+
"hiddenAliases": [],
|
|
462
|
+
"id": "config:use",
|
|
463
|
+
"pluginAlias": "@super-protocol/sp-cli",
|
|
464
|
+
"pluginName": "@super-protocol/sp-cli",
|
|
465
|
+
"pluginType": "core",
|
|
466
|
+
"strict": true,
|
|
467
|
+
"enableJsonFlag": true,
|
|
468
|
+
"isESM": true,
|
|
469
|
+
"relativePath": [
|
|
470
|
+
"dist",
|
|
471
|
+
"commands",
|
|
472
|
+
"config",
|
|
473
|
+
"use.js"
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
"storage:base": {
|
|
477
|
+
"aliases": [],
|
|
478
|
+
"args": {},
|
|
408
479
|
"flags": {
|
|
409
480
|
"json": {
|
|
410
481
|
"description": "Format output as json.",
|
|
@@ -421,20 +492,11 @@
|
|
|
421
492
|
"hasDynamicHelp": false,
|
|
422
493
|
"multiple": false,
|
|
423
494
|
"type": "option"
|
|
424
|
-
},
|
|
425
|
-
"url": {
|
|
426
|
-
"helpGroup": "GLOBAL",
|
|
427
|
-
"name": "url",
|
|
428
|
-
"required": false,
|
|
429
|
-
"summary": "Specify provider base URL.",
|
|
430
|
-
"hasDynamicHelp": false,
|
|
431
|
-
"multiple": false,
|
|
432
|
-
"type": "option"
|
|
433
495
|
}
|
|
434
496
|
},
|
|
435
497
|
"hasDynamicHelp": false,
|
|
436
498
|
"hiddenAliases": [],
|
|
437
|
-
"id": "
|
|
499
|
+
"id": "storage:base",
|
|
438
500
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
439
501
|
"pluginName": "@super-protocol/sp-cli",
|
|
440
502
|
"pluginType": "core",
|
|
@@ -444,16 +506,18 @@
|
|
|
444
506
|
"relativePath": [
|
|
445
507
|
"dist",
|
|
446
508
|
"commands",
|
|
447
|
-
"
|
|
448
|
-
"
|
|
509
|
+
"storage",
|
|
510
|
+
"base.js"
|
|
449
511
|
]
|
|
450
512
|
},
|
|
451
|
-
"
|
|
513
|
+
"storage:create": {
|
|
452
514
|
"aliases": [],
|
|
453
515
|
"args": {},
|
|
454
|
-
"description": "
|
|
516
|
+
"description": "Create a new storage entry from file or interactive prompts.",
|
|
455
517
|
"examples": [
|
|
456
|
-
"<%= config.bin %>
|
|
518
|
+
"<%= config.bin %> storage create",
|
|
519
|
+
"<%= config.bin %> storage create --fromFile ./storage.json",
|
|
520
|
+
"<%= config.bin %> storage create --not-default"
|
|
457
521
|
],
|
|
458
522
|
"flags": {
|
|
459
523
|
"json": {
|
|
@@ -472,19 +536,27 @@
|
|
|
472
536
|
"multiple": false,
|
|
473
537
|
"type": "option"
|
|
474
538
|
},
|
|
475
|
-
"
|
|
476
|
-
"
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
"
|
|
539
|
+
"fromFile": {
|
|
540
|
+
"aliases": [
|
|
541
|
+
"fromFile"
|
|
542
|
+
],
|
|
543
|
+
"char": "f",
|
|
544
|
+
"description": "Path to a JSON file that contains AddStorageDto payload.",
|
|
545
|
+
"name": "fromFile",
|
|
480
546
|
"hasDynamicHelp": false,
|
|
481
547
|
"multiple": false,
|
|
482
548
|
"type": "option"
|
|
549
|
+
},
|
|
550
|
+
"notDefault": {
|
|
551
|
+
"description": "Skip setting the created storage as default.",
|
|
552
|
+
"name": "notDefault",
|
|
553
|
+
"allowNo": false,
|
|
554
|
+
"type": "boolean"
|
|
483
555
|
}
|
|
484
556
|
},
|
|
485
557
|
"hasDynamicHelp": false,
|
|
486
558
|
"hiddenAliases": [],
|
|
487
|
-
"id": "
|
|
559
|
+
"id": "storage:create",
|
|
488
560
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
489
561
|
"pluginName": "@super-protocol/sp-cli",
|
|
490
562
|
"pluginType": "core",
|
|
@@ -494,16 +566,17 @@
|
|
|
494
566
|
"relativePath": [
|
|
495
567
|
"dist",
|
|
496
568
|
"commands",
|
|
497
|
-
"
|
|
498
|
-
"
|
|
569
|
+
"storage",
|
|
570
|
+
"create.js"
|
|
499
571
|
]
|
|
500
572
|
},
|
|
501
|
-
"
|
|
573
|
+
"storage:select": {
|
|
502
574
|
"aliases": [],
|
|
503
575
|
"args": {},
|
|
504
|
-
"description": "
|
|
576
|
+
"description": "Select a storage that will be used by subsequent commands.",
|
|
505
577
|
"examples": [
|
|
506
|
-
"<%= config.bin %>
|
|
578
|
+
"<%= config.bin %> storage select",
|
|
579
|
+
"<%= config.bin %> storage select --id=2de3e3a4-0000-1111-2222-333344445555"
|
|
507
580
|
],
|
|
508
581
|
"flags": {
|
|
509
582
|
"json": {
|
|
@@ -522,11 +595,10 @@
|
|
|
522
595
|
"multiple": false,
|
|
523
596
|
"type": "option"
|
|
524
597
|
},
|
|
525
|
-
"
|
|
526
|
-
"
|
|
527
|
-
"
|
|
528
|
-
"
|
|
529
|
-
"summary": "Specify provider base URL.",
|
|
598
|
+
"id": {
|
|
599
|
+
"char": "i",
|
|
600
|
+
"description": "Storage ID to select",
|
|
601
|
+
"name": "id",
|
|
530
602
|
"hasDynamicHelp": false,
|
|
531
603
|
"multiple": false,
|
|
532
604
|
"type": "option"
|
|
@@ -534,7 +606,7 @@
|
|
|
534
606
|
},
|
|
535
607
|
"hasDynamicHelp": false,
|
|
536
608
|
"hiddenAliases": [],
|
|
537
|
-
"id": "
|
|
609
|
+
"id": "storage:select",
|
|
538
610
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
539
611
|
"pluginName": "@super-protocol/sp-cli",
|
|
540
612
|
"pluginType": "core",
|
|
@@ -544,16 +616,17 @@
|
|
|
544
616
|
"relativePath": [
|
|
545
617
|
"dist",
|
|
546
618
|
"commands",
|
|
547
|
-
"
|
|
548
|
-
"
|
|
619
|
+
"storage",
|
|
620
|
+
"select.js"
|
|
549
621
|
]
|
|
550
622
|
},
|
|
551
|
-
"
|
|
623
|
+
"storage:update": {
|
|
552
624
|
"aliases": [],
|
|
553
625
|
"args": {},
|
|
554
|
-
"description": "
|
|
626
|
+
"description": "Update the configuration of an existing storage.",
|
|
555
627
|
"examples": [
|
|
556
|
-
"<%= config.bin %>
|
|
628
|
+
"<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555 --fromFile ./storage-update.json",
|
|
629
|
+
"<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555"
|
|
557
630
|
],
|
|
558
631
|
"flags": {
|
|
559
632
|
"json": {
|
|
@@ -572,11 +645,18 @@
|
|
|
572
645
|
"multiple": false,
|
|
573
646
|
"type": "option"
|
|
574
647
|
},
|
|
575
|
-
"
|
|
576
|
-
"
|
|
577
|
-
"
|
|
578
|
-
"
|
|
579
|
-
"
|
|
648
|
+
"fromFile": {
|
|
649
|
+
"char": "f",
|
|
650
|
+
"description": "Path to a JSON file that contains UpdateStorageDto payload.",
|
|
651
|
+
"name": "fromFile",
|
|
652
|
+
"hasDynamicHelp": false,
|
|
653
|
+
"multiple": false,
|
|
654
|
+
"type": "option"
|
|
655
|
+
},
|
|
656
|
+
"id": {
|
|
657
|
+
"char": "i",
|
|
658
|
+
"description": "Storage ID to update",
|
|
659
|
+
"name": "id",
|
|
580
660
|
"hasDynamicHelp": false,
|
|
581
661
|
"multiple": false,
|
|
582
662
|
"type": "option"
|
|
@@ -584,7 +664,7 @@
|
|
|
584
664
|
},
|
|
585
665
|
"hasDynamicHelp": false,
|
|
586
666
|
"hiddenAliases": [],
|
|
587
|
-
"id": "
|
|
667
|
+
"id": "storage:update",
|
|
588
668
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
589
669
|
"pluginName": "@super-protocol/sp-cli",
|
|
590
670
|
"pluginType": "core",
|
|
@@ -594,10 +674,10 @@
|
|
|
594
674
|
"relativePath": [
|
|
595
675
|
"dist",
|
|
596
676
|
"commands",
|
|
597
|
-
"
|
|
598
|
-
"
|
|
677
|
+
"storage",
|
|
678
|
+
"update.js"
|
|
599
679
|
]
|
|
600
680
|
}
|
|
601
681
|
},
|
|
602
|
-
"version": "0.0.2-
|
|
682
|
+
"version": "0.0.2-beta.2"
|
|
603
683
|
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@super-protocol/sp-cli",
|
|
3
3
|
"description": "SuperProtocol Command line interface",
|
|
4
|
-
"version": "0.0.2-
|
|
4
|
+
"version": "0.0.2-beta.2",
|
|
5
5
|
"author": "SuperProtocol",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"bin": {
|
|
11
|
-
"sp": "./bin/run.js"
|
|
11
|
+
"sp": "./bin/run.js",
|
|
12
|
+
"spcli": "./bin/run.js"
|
|
12
13
|
},
|
|
13
14
|
"bugs": "https://github.com/Super-Protocol/sp-cli/issues",
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"@
|
|
16
|
+
"@clack/prompts": "^0.11.0",
|
|
16
17
|
"@oclif/core": "^4.7.2",
|
|
17
18
|
"@oclif/plugin-help": "^6.2.33",
|
|
18
19
|
"@oclif/plugin-plugins": "^5.4.50",
|
|
19
20
|
"@oclif/plugin-warn-if-update-available": "^3.1.50",
|
|
20
21
|
"@sinclair/typebox": "^0.33.22",
|
|
21
22
|
"@super-protocol/provider-client": "^0.1.7",
|
|
23
|
+
"@super-protocol/sp-files-addon": "^0.12.5",
|
|
22
24
|
"cookie": "^1.0.2",
|
|
23
25
|
"jsonwebtoken": "^9.0.2",
|
|
24
26
|
"pino": "^9.14.0",
|
|
@@ -63,6 +65,10 @@
|
|
|
63
65
|
"type": "module",
|
|
64
66
|
"oclif": {
|
|
65
67
|
"bin": "sp",
|
|
68
|
+
"binAliases": [
|
|
69
|
+
"spcli",
|
|
70
|
+
"sp-cli"
|
|
71
|
+
],
|
|
66
72
|
"dirname": "sp",
|
|
67
73
|
"commands": {
|
|
68
74
|
"strategy": "pattern",
|