@super-protocol/sp-cli 0.0.7 → 0.0.8
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 +57 -43
- package/dist/commands/account/base.d.ts +1 -2
- package/dist/commands/account/base.js +4 -11
- package/dist/commands/account/forget.d.ts +2 -1
- package/dist/commands/account/forget.js +21 -4
- package/dist/commands/account/login.js +3 -8
- package/dist/commands/base.js +96 -12
- package/dist/commands/storage/base.js +11 -11
- package/dist/commands/storage/select.js +3 -3
- package/dist/commands/storage/update.js +10 -10
- package/dist/commands/workflows/extend-lease.d.ts +1 -1
- package/dist/commands/workflows/extend-lease.js +2 -3
- package/dist/utils/prompt-flags.d.ts +20 -0
- package/dist/utils/prompt-flags.js +121 -0
- package/dist/utils/prompt.service.d.ts +16 -0
- package/dist/utils/prompt.service.js +75 -0
- package/dist/utils/tty.d.ts +1 -0
- package/dist/utils/tty.js +3 -0
- package/oclif.manifest.json +265 -160
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -27,6 +27,14 @@
|
|
|
27
27
|
"multiple": false,
|
|
28
28
|
"type": "option"
|
|
29
29
|
},
|
|
30
|
+
"tty": {
|
|
31
|
+
"helpGroup": "GLOBAL",
|
|
32
|
+
"name": "tty",
|
|
33
|
+
"required": false,
|
|
34
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
35
|
+
"allowNo": true,
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
30
38
|
"force": {
|
|
31
39
|
"char": "f",
|
|
32
40
|
"description": "Force deletion without confirmation",
|
|
@@ -38,6 +46,7 @@
|
|
|
38
46
|
"char": "n",
|
|
39
47
|
"description": "Configuration name to delete",
|
|
40
48
|
"name": "name",
|
|
49
|
+
"required": true,
|
|
41
50
|
"hasDynamicHelp": false,
|
|
42
51
|
"multiple": false,
|
|
43
52
|
"type": "option"
|
|
@@ -83,6 +92,14 @@
|
|
|
83
92
|
"hasDynamicHelp": false,
|
|
84
93
|
"multiple": false,
|
|
85
94
|
"type": "option"
|
|
95
|
+
},
|
|
96
|
+
"tty": {
|
|
97
|
+
"helpGroup": "GLOBAL",
|
|
98
|
+
"name": "tty",
|
|
99
|
+
"required": false,
|
|
100
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
101
|
+
"allowNo": true,
|
|
102
|
+
"type": "boolean"
|
|
86
103
|
}
|
|
87
104
|
},
|
|
88
105
|
"hasDynamicHelp": false,
|
|
@@ -122,6 +139,14 @@
|
|
|
122
139
|
"multiple": false,
|
|
123
140
|
"type": "option"
|
|
124
141
|
},
|
|
142
|
+
"tty": {
|
|
143
|
+
"helpGroup": "GLOBAL",
|
|
144
|
+
"name": "tty",
|
|
145
|
+
"required": false,
|
|
146
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
147
|
+
"allowNo": true,
|
|
148
|
+
"type": "boolean"
|
|
149
|
+
},
|
|
125
150
|
"detail": {
|
|
126
151
|
"description": "Detailed information about Account",
|
|
127
152
|
"name": "detail",
|
|
@@ -168,6 +193,14 @@
|
|
|
168
193
|
"hasDynamicHelp": false,
|
|
169
194
|
"multiple": false,
|
|
170
195
|
"type": "option"
|
|
196
|
+
},
|
|
197
|
+
"tty": {
|
|
198
|
+
"helpGroup": "GLOBAL",
|
|
199
|
+
"name": "tty",
|
|
200
|
+
"required": false,
|
|
201
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
202
|
+
"allowNo": true,
|
|
203
|
+
"type": "boolean"
|
|
171
204
|
}
|
|
172
205
|
},
|
|
173
206
|
"hasDynamicHelp": false,
|
|
@@ -214,6 +247,14 @@
|
|
|
214
247
|
"multiple": false,
|
|
215
248
|
"type": "option"
|
|
216
249
|
},
|
|
250
|
+
"tty": {
|
|
251
|
+
"helpGroup": "GLOBAL",
|
|
252
|
+
"name": "tty",
|
|
253
|
+
"required": false,
|
|
254
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
255
|
+
"allowNo": true,
|
|
256
|
+
"type": "boolean"
|
|
257
|
+
},
|
|
217
258
|
"name": {
|
|
218
259
|
"description": "Account readable name",
|
|
219
260
|
"name": "name",
|
|
@@ -284,6 +325,14 @@
|
|
|
284
325
|
"hasDynamicHelp": false,
|
|
285
326
|
"multiple": false,
|
|
286
327
|
"type": "option"
|
|
328
|
+
},
|
|
329
|
+
"tty": {
|
|
330
|
+
"helpGroup": "GLOBAL",
|
|
331
|
+
"name": "tty",
|
|
332
|
+
"required": false,
|
|
333
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
334
|
+
"allowNo": true,
|
|
335
|
+
"type": "boolean"
|
|
287
336
|
}
|
|
288
337
|
},
|
|
289
338
|
"hasDynamicHelp": false,
|
|
@@ -302,14 +351,23 @@
|
|
|
302
351
|
"switch.js"
|
|
303
352
|
]
|
|
304
353
|
},
|
|
305
|
-
"
|
|
354
|
+
"files:download": {
|
|
306
355
|
"aliases": [],
|
|
307
|
-
"args": {
|
|
308
|
-
|
|
356
|
+
"args": {
|
|
357
|
+
"resourceFile": {
|
|
358
|
+
"description": "Path to a resource file",
|
|
359
|
+
"name": "resourceFile",
|
|
360
|
+
"required": true
|
|
361
|
+
},
|
|
362
|
+
"localDirectory": {
|
|
363
|
+
"description": "Path to save downloaded file",
|
|
364
|
+
"name": "localDirectory",
|
|
365
|
+
"required": true
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"description": "Download file or directory described in resource file",
|
|
309
369
|
"examples": [
|
|
310
|
-
"<%= config.bin %>
|
|
311
|
-
"<%= config.bin %> storage create --fromFile ./storage.json",
|
|
312
|
-
"<%= config.bin %> storage create --not-default"
|
|
370
|
+
"<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload "
|
|
313
371
|
],
|
|
314
372
|
"flags": {
|
|
315
373
|
"json": {
|
|
@@ -329,45 +387,53 @@
|
|
|
329
387
|
"multiple": false,
|
|
330
388
|
"type": "option"
|
|
331
389
|
},
|
|
332
|
-
"
|
|
333
|
-
"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
"
|
|
337
|
-
"
|
|
338
|
-
"
|
|
390
|
+
"tty": {
|
|
391
|
+
"helpGroup": "GLOBAL",
|
|
392
|
+
"name": "tty",
|
|
393
|
+
"required": false,
|
|
394
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
395
|
+
"allowNo": true,
|
|
396
|
+
"type": "boolean"
|
|
397
|
+
},
|
|
398
|
+
"maximum-concurrent": {
|
|
399
|
+
"description": "Maximum concurrent pieces to download at once per transfer",
|
|
400
|
+
"name": "maximum-concurrent",
|
|
401
|
+
"default": 1,
|
|
339
402
|
"hasDynamicHelp": false,
|
|
340
403
|
"multiple": false,
|
|
341
404
|
"type": "option"
|
|
342
|
-
},
|
|
343
|
-
"notDefault": {
|
|
344
|
-
"description": "Skip setting the created storage as default.",
|
|
345
|
-
"name": "notDefault",
|
|
346
|
-
"allowNo": false,
|
|
347
|
-
"type": "boolean"
|
|
348
405
|
}
|
|
349
406
|
},
|
|
350
407
|
"hasDynamicHelp": false,
|
|
351
408
|
"hiddenAliases": [],
|
|
352
|
-
"id": "
|
|
409
|
+
"id": "files:download",
|
|
353
410
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
354
411
|
"pluginName": "@super-protocol/sp-cli",
|
|
355
412
|
"pluginType": "core",
|
|
356
413
|
"strict": true,
|
|
414
|
+
"enableJsonFlag": true,
|
|
415
|
+
"authenticate": true,
|
|
416
|
+
"help": "Download and decrypt a file from the remote storage to <localPath> using resource file <resourcePath>",
|
|
357
417
|
"isESM": true,
|
|
358
418
|
"relativePath": [
|
|
359
419
|
"dist",
|
|
360
420
|
"commands",
|
|
361
|
-
"
|
|
362
|
-
"
|
|
421
|
+
"files",
|
|
422
|
+
"download.js"
|
|
363
423
|
]
|
|
364
424
|
},
|
|
365
|
-
"
|
|
425
|
+
"files:upload": {
|
|
366
426
|
"aliases": [],
|
|
367
|
-
"args": {
|
|
368
|
-
|
|
427
|
+
"args": {
|
|
428
|
+
"path": {
|
|
429
|
+
"description": "file or directory to upload",
|
|
430
|
+
"name": "path",
|
|
431
|
+
"required": true
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"description": "Upload file or directory to remote storage",
|
|
369
435
|
"examples": [
|
|
370
|
-
"<%= config.bin %>
|
|
436
|
+
"<%= config.bin %> <%= command.id %> ./file.txt"
|
|
371
437
|
],
|
|
372
438
|
"flags": {
|
|
373
439
|
"json": {
|
|
@@ -386,29 +452,88 @@
|
|
|
386
452
|
"hasDynamicHelp": false,
|
|
387
453
|
"multiple": false,
|
|
388
454
|
"type": "option"
|
|
455
|
+
},
|
|
456
|
+
"tty": {
|
|
457
|
+
"helpGroup": "GLOBAL",
|
|
458
|
+
"name": "tty",
|
|
459
|
+
"required": false,
|
|
460
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
461
|
+
"allowNo": true,
|
|
462
|
+
"type": "boolean"
|
|
463
|
+
},
|
|
464
|
+
"filename": {
|
|
465
|
+
"description": "The name of the resulting file/directory in the storage",
|
|
466
|
+
"name": "filename",
|
|
467
|
+
"required": false,
|
|
468
|
+
"hasDynamicHelp": false,
|
|
469
|
+
"multiple": false,
|
|
470
|
+
"type": "option"
|
|
471
|
+
},
|
|
472
|
+
"maximum-concurrent": {
|
|
473
|
+
"description": "Maximum concurrent pieces to upload at once per transfer",
|
|
474
|
+
"name": "maximum-concurrent",
|
|
475
|
+
"default": 1,
|
|
476
|
+
"hasDynamicHelp": false,
|
|
477
|
+
"multiple": false,
|
|
478
|
+
"type": "option"
|
|
479
|
+
},
|
|
480
|
+
"metadata": {
|
|
481
|
+
"description": "Path to a metadata file for adding fields to the resource file",
|
|
482
|
+
"name": "metadata",
|
|
483
|
+
"required": false,
|
|
484
|
+
"hasDynamicHelp": false,
|
|
485
|
+
"multiple": false,
|
|
486
|
+
"type": "option"
|
|
487
|
+
},
|
|
488
|
+
"output": {
|
|
489
|
+
"description": "Path to save resource file that is used to access the uploaded file",
|
|
490
|
+
"name": "output",
|
|
491
|
+
"required": false,
|
|
492
|
+
"default": "resource.json",
|
|
493
|
+
"hasDynamicHelp": false,
|
|
494
|
+
"multiple": false,
|
|
495
|
+
"type": "option"
|
|
496
|
+
},
|
|
497
|
+
"skip-encryption": {
|
|
498
|
+
"description": "Skip file encryption before upload",
|
|
499
|
+
"name": "skip-encryption",
|
|
500
|
+
"required": false,
|
|
501
|
+
"allowNo": false,
|
|
502
|
+
"type": "boolean"
|
|
503
|
+
},
|
|
504
|
+
"sync": {
|
|
505
|
+
"description": "Sync mode: delete files in target that don't exist in source",
|
|
506
|
+
"name": "sync",
|
|
507
|
+
"required": false,
|
|
508
|
+
"allowNo": false,
|
|
509
|
+
"type": "boolean"
|
|
389
510
|
}
|
|
390
511
|
},
|
|
391
512
|
"hasDynamicHelp": false,
|
|
392
513
|
"hiddenAliases": [],
|
|
393
|
-
"id": "
|
|
514
|
+
"id": "files:upload",
|
|
394
515
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
395
516
|
"pluginName": "@super-protocol/sp-cli",
|
|
396
517
|
"pluginType": "core",
|
|
397
518
|
"strict": true,
|
|
519
|
+
"enableJsonFlag": true,
|
|
520
|
+
"authenticate": true,
|
|
398
521
|
"isESM": true,
|
|
399
522
|
"relativePath": [
|
|
400
523
|
"dist",
|
|
401
524
|
"commands",
|
|
402
|
-
"
|
|
403
|
-
"
|
|
525
|
+
"files",
|
|
526
|
+
"upload.js"
|
|
404
527
|
]
|
|
405
528
|
},
|
|
406
|
-
"storage:
|
|
529
|
+
"storage:create": {
|
|
407
530
|
"aliases": [],
|
|
408
531
|
"args": {},
|
|
409
|
-
"description": "
|
|
532
|
+
"description": "Create a new storage entry from file or interactive prompts.",
|
|
410
533
|
"examples": [
|
|
411
|
-
"<%= config.bin %>
|
|
534
|
+
"<%= config.bin %> storage create",
|
|
535
|
+
"<%= config.bin %> storage create --fromFile ./storage.json",
|
|
536
|
+
"<%= config.bin %> storage create --not-default"
|
|
412
537
|
],
|
|
413
538
|
"flags": {
|
|
414
539
|
"json": {
|
|
@@ -427,11 +552,36 @@
|
|
|
427
552
|
"hasDynamicHelp": false,
|
|
428
553
|
"multiple": false,
|
|
429
554
|
"type": "option"
|
|
555
|
+
},
|
|
556
|
+
"tty": {
|
|
557
|
+
"helpGroup": "GLOBAL",
|
|
558
|
+
"name": "tty",
|
|
559
|
+
"required": false,
|
|
560
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
561
|
+
"allowNo": true,
|
|
562
|
+
"type": "boolean"
|
|
563
|
+
},
|
|
564
|
+
"fromFile": {
|
|
565
|
+
"aliases": [
|
|
566
|
+
"fromFile"
|
|
567
|
+
],
|
|
568
|
+
"char": "f",
|
|
569
|
+
"description": "Path to a JSON file that contains AddStorageDto payload.",
|
|
570
|
+
"name": "fromFile",
|
|
571
|
+
"hasDynamicHelp": false,
|
|
572
|
+
"multiple": false,
|
|
573
|
+
"type": "option"
|
|
574
|
+
},
|
|
575
|
+
"notDefault": {
|
|
576
|
+
"description": "Skip setting the created storage as default.",
|
|
577
|
+
"name": "notDefault",
|
|
578
|
+
"allowNo": false,
|
|
579
|
+
"type": "boolean"
|
|
430
580
|
}
|
|
431
581
|
},
|
|
432
582
|
"hasDynamicHelp": false,
|
|
433
583
|
"hiddenAliases": [],
|
|
434
|
-
"id": "storage:
|
|
584
|
+
"id": "storage:create",
|
|
435
585
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
436
586
|
"pluginName": "@super-protocol/sp-cli",
|
|
437
587
|
"pluginType": "core",
|
|
@@ -441,16 +591,15 @@
|
|
|
441
591
|
"dist",
|
|
442
592
|
"commands",
|
|
443
593
|
"storage",
|
|
444
|
-
"
|
|
594
|
+
"create.js"
|
|
445
595
|
]
|
|
446
596
|
},
|
|
447
|
-
"storage:
|
|
597
|
+
"storage:select": {
|
|
448
598
|
"aliases": [],
|
|
449
599
|
"args": {},
|
|
450
|
-
"description": "
|
|
600
|
+
"description": "Select a storage that will be used by subsequent commands.",
|
|
451
601
|
"examples": [
|
|
452
|
-
"<%= config.bin %> storage
|
|
453
|
-
"<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555"
|
|
602
|
+
"<%= config.bin %> storage select"
|
|
454
603
|
],
|
|
455
604
|
"flags": {
|
|
456
605
|
"json": {
|
|
@@ -470,26 +619,18 @@
|
|
|
470
619
|
"multiple": false,
|
|
471
620
|
"type": "option"
|
|
472
621
|
},
|
|
473
|
-
"
|
|
474
|
-
"
|
|
475
|
-
"
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
"
|
|
479
|
-
"type": "
|
|
480
|
-
},
|
|
481
|
-
"id": {
|
|
482
|
-
"char": "i",
|
|
483
|
-
"description": "Storage ID to update",
|
|
484
|
-
"name": "id",
|
|
485
|
-
"hasDynamicHelp": false,
|
|
486
|
-
"multiple": false,
|
|
487
|
-
"type": "option"
|
|
622
|
+
"tty": {
|
|
623
|
+
"helpGroup": "GLOBAL",
|
|
624
|
+
"name": "tty",
|
|
625
|
+
"required": false,
|
|
626
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
627
|
+
"allowNo": true,
|
|
628
|
+
"type": "boolean"
|
|
488
629
|
}
|
|
489
630
|
},
|
|
490
631
|
"hasDynamicHelp": false,
|
|
491
632
|
"hiddenAliases": [],
|
|
492
|
-
"id": "storage:
|
|
633
|
+
"id": "storage:select",
|
|
493
634
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
494
635
|
"pluginName": "@super-protocol/sp-cli",
|
|
495
636
|
"pluginType": "core",
|
|
@@ -499,23 +640,15 @@
|
|
|
499
640
|
"dist",
|
|
500
641
|
"commands",
|
|
501
642
|
"storage",
|
|
502
|
-
"
|
|
643
|
+
"select.js"
|
|
503
644
|
]
|
|
504
645
|
},
|
|
505
|
-
"
|
|
646
|
+
"storage:show": {
|
|
506
647
|
"aliases": [],
|
|
507
|
-
"args": {
|
|
508
|
-
|
|
509
|
-
"description": "Order ID",
|
|
510
|
-
"name": "orderId",
|
|
511
|
-
"required": true
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
"description": "Replenish deposit for a workflow to extend its lease time",
|
|
648
|
+
"args": {},
|
|
649
|
+
"description": "Show current selected storage",
|
|
515
650
|
"examples": [
|
|
516
|
-
"<%= config.bin %> <%= command.id %>
|
|
517
|
-
"<%= config.bin %> <%= command.id %> <orderId> --minutes 120",
|
|
518
|
-
"<%= config.bin %> <%= command.id %> <orderId> --sppi 2 --yes"
|
|
651
|
+
"<%= config.bin %> <%= command.id %>"
|
|
519
652
|
],
|
|
520
653
|
"flags": {
|
|
521
654
|
"json": {
|
|
@@ -535,62 +668,37 @@
|
|
|
535
668
|
"multiple": false,
|
|
536
669
|
"type": "option"
|
|
537
670
|
},
|
|
538
|
-
"
|
|
539
|
-
"
|
|
540
|
-
"name": "
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
"
|
|
544
|
-
},
|
|
545
|
-
"sppi": {
|
|
546
|
-
"description": "SPPI token amount to add to the order",
|
|
547
|
-
"name": "sppi",
|
|
548
|
-
"hasDynamicHelp": false,
|
|
549
|
-
"multiple": false,
|
|
550
|
-
"type": "option"
|
|
551
|
-
},
|
|
552
|
-
"yes": {
|
|
553
|
-
"char": "y",
|
|
554
|
-
"description": "Skip confirmation prompt",
|
|
555
|
-
"name": "yes",
|
|
556
|
-
"allowNo": false,
|
|
671
|
+
"tty": {
|
|
672
|
+
"helpGroup": "GLOBAL",
|
|
673
|
+
"name": "tty",
|
|
674
|
+
"required": false,
|
|
675
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
676
|
+
"allowNo": true,
|
|
557
677
|
"type": "boolean"
|
|
558
678
|
}
|
|
559
679
|
},
|
|
560
680
|
"hasDynamicHelp": false,
|
|
561
681
|
"hiddenAliases": [],
|
|
562
|
-
"id": "
|
|
682
|
+
"id": "storage:show",
|
|
563
683
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
564
684
|
"pluginName": "@super-protocol/sp-cli",
|
|
565
685
|
"pluginType": "core",
|
|
566
686
|
"strict": true,
|
|
567
|
-
"enableJsonFlag": true,
|
|
568
|
-
"authenticate": true,
|
|
569
687
|
"isESM": true,
|
|
570
688
|
"relativePath": [
|
|
571
689
|
"dist",
|
|
572
690
|
"commands",
|
|
573
|
-
"
|
|
574
|
-
"
|
|
691
|
+
"storage",
|
|
692
|
+
"show.js"
|
|
575
693
|
]
|
|
576
694
|
},
|
|
577
|
-
"
|
|
695
|
+
"storage:update": {
|
|
578
696
|
"aliases": [],
|
|
579
|
-
"args": {
|
|
580
|
-
|
|
581
|
-
"description": "Path to a resource file",
|
|
582
|
-
"name": "resourceFile",
|
|
583
|
-
"required": true
|
|
584
|
-
},
|
|
585
|
-
"localDirectory": {
|
|
586
|
-
"description": "Path to save downloaded file",
|
|
587
|
-
"name": "localDirectory",
|
|
588
|
-
"required": true
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
"description": "Download file or directory described in resource file",
|
|
697
|
+
"args": {},
|
|
698
|
+
"description": "Update the configuration of an existing storage.",
|
|
592
699
|
"examples": [
|
|
593
|
-
"<%= config.bin %>
|
|
700
|
+
"<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555 --fromFile ./storage-update.json",
|
|
701
|
+
"<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555"
|
|
594
702
|
],
|
|
595
703
|
"flags": {
|
|
596
704
|
"json": {
|
|
@@ -610,10 +718,26 @@
|
|
|
610
718
|
"multiple": false,
|
|
611
719
|
"type": "option"
|
|
612
720
|
},
|
|
613
|
-
"
|
|
614
|
-
"
|
|
615
|
-
"name": "
|
|
616
|
-
"
|
|
721
|
+
"tty": {
|
|
722
|
+
"helpGroup": "GLOBAL",
|
|
723
|
+
"name": "tty",
|
|
724
|
+
"required": false,
|
|
725
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
726
|
+
"allowNo": true,
|
|
727
|
+
"type": "boolean"
|
|
728
|
+
},
|
|
729
|
+
"fromFile": {
|
|
730
|
+
"char": "f",
|
|
731
|
+
"description": "Path to a JSON file that contains UpdateStorageDto payload.",
|
|
732
|
+
"name": "fromFile",
|
|
733
|
+
"hasDynamicHelp": false,
|
|
734
|
+
"multiple": false,
|
|
735
|
+
"type": "option"
|
|
736
|
+
},
|
|
737
|
+
"id": {
|
|
738
|
+
"char": "i",
|
|
739
|
+
"description": "Storage ID to update",
|
|
740
|
+
"name": "id",
|
|
617
741
|
"hasDynamicHelp": false,
|
|
618
742
|
"multiple": false,
|
|
619
743
|
"type": "option"
|
|
@@ -621,34 +745,33 @@
|
|
|
621
745
|
},
|
|
622
746
|
"hasDynamicHelp": false,
|
|
623
747
|
"hiddenAliases": [],
|
|
624
|
-
"id": "
|
|
748
|
+
"id": "storage:update",
|
|
625
749
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
626
750
|
"pluginName": "@super-protocol/sp-cli",
|
|
627
751
|
"pluginType": "core",
|
|
628
752
|
"strict": true,
|
|
629
|
-
"enableJsonFlag": true,
|
|
630
|
-
"authenticate": true,
|
|
631
|
-
"help": "Download and decrypt a file from the remote storage to <localPath> using resource file <resourcePath>",
|
|
632
753
|
"isESM": true,
|
|
633
754
|
"relativePath": [
|
|
634
755
|
"dist",
|
|
635
756
|
"commands",
|
|
636
|
-
"
|
|
637
|
-
"
|
|
757
|
+
"storage",
|
|
758
|
+
"update.js"
|
|
638
759
|
]
|
|
639
760
|
},
|
|
640
|
-
"
|
|
761
|
+
"workflows:extend-lease": {
|
|
641
762
|
"aliases": [],
|
|
642
763
|
"args": {
|
|
643
|
-
"
|
|
644
|
-
"description": "
|
|
645
|
-
"name": "
|
|
764
|
+
"orderId": {
|
|
765
|
+
"description": "Order ID",
|
|
766
|
+
"name": "orderId",
|
|
646
767
|
"required": true
|
|
647
768
|
}
|
|
648
769
|
},
|
|
649
|
-
"description": "
|
|
770
|
+
"description": "Replenish deposit for a workflow to extend its lease time",
|
|
650
771
|
"examples": [
|
|
651
|
-
"<%= config.bin %> <%= command.id %>
|
|
772
|
+
"<%= config.bin %> <%= command.id %> <orderId> --sppi 1.5",
|
|
773
|
+
"<%= config.bin %> <%= command.id %> <orderId> --minutes 120",
|
|
774
|
+
"<%= config.bin %> <%= command.id %> <orderId> --sppi 2 --yes"
|
|
652
775
|
],
|
|
653
776
|
"flags": {
|
|
654
777
|
"json": {
|
|
@@ -668,57 +791,39 @@
|
|
|
668
791
|
"multiple": false,
|
|
669
792
|
"type": "option"
|
|
670
793
|
},
|
|
671
|
-
"
|
|
672
|
-
"
|
|
673
|
-
"name": "
|
|
794
|
+
"tty": {
|
|
795
|
+
"helpGroup": "GLOBAL",
|
|
796
|
+
"name": "tty",
|
|
674
797
|
"required": false,
|
|
675
|
-
"
|
|
676
|
-
"
|
|
677
|
-
"type": "
|
|
678
|
-
},
|
|
679
|
-
"maximum-concurrent": {
|
|
680
|
-
"description": "Maximum concurrent pieces to upload at once per transfer",
|
|
681
|
-
"name": "maximum-concurrent",
|
|
682
|
-
"default": 1,
|
|
683
|
-
"hasDynamicHelp": false,
|
|
684
|
-
"multiple": false,
|
|
685
|
-
"type": "option"
|
|
798
|
+
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
799
|
+
"allowNo": true,
|
|
800
|
+
"type": "boolean"
|
|
686
801
|
},
|
|
687
|
-
"
|
|
688
|
-
"description": "
|
|
689
|
-
"name": "
|
|
690
|
-
"required": false,
|
|
802
|
+
"minutes": {
|
|
803
|
+
"description": "Time to extend order in minutes (automatically calculates tokens)",
|
|
804
|
+
"name": "minutes",
|
|
691
805
|
"hasDynamicHelp": false,
|
|
692
806
|
"multiple": false,
|
|
693
807
|
"type": "option"
|
|
694
808
|
},
|
|
695
|
-
"
|
|
696
|
-
"description": "
|
|
697
|
-
"name": "
|
|
698
|
-
"required": false,
|
|
699
|
-
"default": "resource.json",
|
|
809
|
+
"sppi": {
|
|
810
|
+
"description": "SPPI token amount to add to the order",
|
|
811
|
+
"name": "sppi",
|
|
700
812
|
"hasDynamicHelp": false,
|
|
701
813
|
"multiple": false,
|
|
702
814
|
"type": "option"
|
|
703
815
|
},
|
|
704
|
-
"
|
|
705
|
-
"
|
|
706
|
-
"
|
|
707
|
-
"
|
|
708
|
-
"allowNo": false,
|
|
709
|
-
"type": "boolean"
|
|
710
|
-
},
|
|
711
|
-
"sync": {
|
|
712
|
-
"description": "Sync mode: delete files in target that don't exist in source",
|
|
713
|
-
"name": "sync",
|
|
714
|
-
"required": false,
|
|
816
|
+
"yes": {
|
|
817
|
+
"char": "y",
|
|
818
|
+
"description": "Skip confirmation prompt",
|
|
819
|
+
"name": "yes",
|
|
715
820
|
"allowNo": false,
|
|
716
821
|
"type": "boolean"
|
|
717
822
|
}
|
|
718
823
|
},
|
|
719
824
|
"hasDynamicHelp": false,
|
|
720
825
|
"hiddenAliases": [],
|
|
721
|
-
"id": "
|
|
826
|
+
"id": "workflows:extend-lease",
|
|
722
827
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
723
828
|
"pluginName": "@super-protocol/sp-cli",
|
|
724
829
|
"pluginType": "core",
|
|
@@ -729,10 +834,10 @@
|
|
|
729
834
|
"relativePath": [
|
|
730
835
|
"dist",
|
|
731
836
|
"commands",
|
|
732
|
-
"
|
|
733
|
-
"
|
|
837
|
+
"workflows",
|
|
838
|
+
"extend-lease.js"
|
|
734
839
|
]
|
|
735
840
|
}
|
|
736
841
|
},
|
|
737
|
-
"version": "0.0.
|
|
842
|
+
"version": "0.0.8"
|
|
738
843
|
}
|