@super-protocol/sp-cli 0.0.2-beta.10 → 0.0.2-beta.12

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 CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @super-protocol/sp-cli
21
21
  $ sp COMMAND
22
22
  running command...
23
23
  $ sp (--version)
24
- @super-protocol/sp-cli/0.0.2-beta.10 linux-x64 node-v22.21.1
24
+ @super-protocol/sp-cli/0.0.2-beta.12 linux-x64 node-v22.21.1
25
25
  $ sp --help [COMMAND]
26
26
  USAGE
27
27
  $ sp COMMAND
@@ -33,10 +33,9 @@ USAGE
33
33
  * [`sp account info`](#sp-account-info)
34
34
  * [`sp auth login`](#sp-auth-login)
35
35
  * [`sp auth me`](#sp-auth-me)
36
- * [`sp base`](#sp-base)
36
+ * [`sp autocomplete [SHELL]`](#sp-autocomplete-shell)
37
37
  * [`sp config`](#sp-config)
38
38
  * [`sp config add [FILE]`](#sp-config-add-file)
39
- * [`sp config base`](#sp-config-base)
40
39
  * [`sp config create`](#sp-config-create)
41
40
  * [`sp config delete`](#sp-config-delete)
42
41
  * [`sp config list`](#sp-config-list)
@@ -46,13 +45,14 @@ USAGE
46
45
  * [`sp files upload PATH`](#sp-files-upload-path)
47
46
  * [`sp help [COMMAND]`](#sp-help-command)
48
47
  * [`sp login`](#sp-login)
49
- * [`sp storage base`](#sp-storage-base)
50
48
  * [`sp storage create`](#sp-storage-create)
51
49
  * [`sp storage select`](#sp-storage-select)
52
50
  * [`sp storage update`](#sp-storage-update)
53
51
 
54
52
  ## `sp account info`
55
53
 
54
+ Information about current authorized user
55
+
56
56
  ```
57
57
  USAGE
58
58
  $ sp account info [--json] [--config <value>]
@@ -60,13 +60,16 @@ USAGE
60
60
  GLOBAL FLAGS
61
61
  --config=<value> Specify config file.
62
62
  --json Format output as json.
63
+
64
+ DESCRIPTION
65
+ Information about current authorized user
63
66
  ```
64
67
 
65
- _See code: [src/commands/account/info.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/account/info.ts)_
68
+ _See code: [src/commands/account/info.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/account/info.ts)_
66
69
 
67
70
  ## `sp auth login`
68
71
 
69
- Authorization
72
+ Login to remote server
70
73
 
71
74
  ```
72
75
  USAGE
@@ -77,7 +80,7 @@ GLOBAL FLAGS
77
80
  --json Format output as json.
78
81
 
79
82
  DESCRIPTION
80
- Authorization
83
+ Login to remote server
81
84
 
82
85
  ALIASES
83
86
  $ sp login
@@ -86,7 +89,7 @@ EXAMPLES
86
89
  $ sp auth login
87
90
  ```
88
91
 
89
- _See code: [src/commands/auth/login.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/auth/login.ts)_
92
+ _See code: [src/commands/auth/login.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/auth/login.ts)_
90
93
 
91
94
  ## `sp auth me`
92
95
 
@@ -99,20 +102,38 @@ GLOBAL FLAGS
99
102
  --json Format output as json.
100
103
  ```
101
104
 
102
- _See code: [src/commands/auth/me.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/auth/me.ts)_
105
+ _See code: [src/commands/auth/me.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/auth/me.ts)_
103
106
 
104
- ## `sp base`
107
+ ## `sp autocomplete [SHELL]`
108
+
109
+ Display autocomplete installation instructions.
105
110
 
106
111
  ```
107
112
  USAGE
108
- $ sp base [--json] [--config <value>]
113
+ $ sp autocomplete [SHELL] [-r]
109
114
 
110
- GLOBAL FLAGS
111
- --config=<value> Specify config file.
112
- --json Format output as json.
115
+ ARGUMENTS
116
+ [SHELL] (zsh|bash|powershell) Shell type
117
+
118
+ FLAGS
119
+ -r, --refresh-cache Refresh cache (ignores displaying instructions)
120
+
121
+ DESCRIPTION
122
+ Display autocomplete installation instructions.
123
+
124
+ EXAMPLES
125
+ $ sp autocomplete
126
+
127
+ $ sp autocomplete bash
128
+
129
+ $ sp autocomplete zsh
130
+
131
+ $ sp autocomplete powershell
132
+
133
+ $ sp autocomplete --refresh-cache
113
134
  ```
114
135
 
115
- _See code: [src/commands/base.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/base.ts)_
136
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.39/src/commands/autocomplete/index.ts)_
116
137
 
117
138
  ## `sp config`
118
139
 
@@ -142,7 +163,7 @@ EXAMPLES
142
163
  $ sp config delete - Delete a configuration
143
164
  ```
144
165
 
145
- _See code: [src/commands/config/index.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/index.ts)_
166
+ _See code: [src/commands/config/index.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/index.ts)_
146
167
 
147
168
  ## `sp config add [FILE]`
148
169
 
@@ -181,19 +202,7 @@ EXAMPLES
181
202
  }
182
203
  ```
183
204
 
184
- _See code: [src/commands/config/add.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/add.ts)_
185
-
186
- ## `sp config base`
187
-
188
- ```
189
- USAGE
190
- $ sp config base [--json]
191
-
192
- GLOBAL FLAGS
193
- --json Format output as json.
194
- ```
195
-
196
- _See code: [src/commands/config/base.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/base.ts)_
205
+ _See code: [src/commands/config/add.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/add.ts)_
197
206
 
198
207
  ## `sp config create`
199
208
 
@@ -220,7 +229,7 @@ EXAMPLES
220
229
  $ sp config create --name "Production" --url "https://api.dp.superprotocol.com"
221
230
  ```
222
231
 
223
- _See code: [src/commands/config/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/create.ts)_
232
+ _See code: [src/commands/config/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/create.ts)_
224
233
 
225
234
  ## `sp config delete`
226
235
 
@@ -248,7 +257,7 @@ EXAMPLES
248
257
  $ sp config delete --name "My Config" --force
249
258
  ```
250
259
 
251
- _See code: [src/commands/config/delete.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/delete.ts)_
260
+ _See code: [src/commands/config/delete.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/delete.ts)_
252
261
 
253
262
  ## `sp config list`
254
263
 
@@ -268,7 +277,7 @@ EXAMPLES
268
277
  $ sp config list
269
278
  ```
270
279
 
271
- _See code: [src/commands/config/list.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/list.ts)_
280
+ _See code: [src/commands/config/list.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/list.ts)_
272
281
 
273
282
  ## `sp config show`
274
283
 
@@ -288,7 +297,7 @@ EXAMPLES
288
297
  $ sp config show
289
298
  ```
290
299
 
291
- _See code: [src/commands/config/show.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/show.ts)_
300
+ _See code: [src/commands/config/show.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/show.ts)_
292
301
 
293
302
  ## `sp config use`
294
303
 
@@ -308,11 +317,11 @@ EXAMPLES
308
317
  $ sp config use
309
318
  ```
310
319
 
311
- _See code: [src/commands/config/use.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/config/use.ts)_
320
+ _See code: [src/commands/config/use.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/config/use.ts)_
312
321
 
313
322
  ## `sp files download RESOURCEFILE LOCALDIRECTORY`
314
323
 
315
- describe the command here
324
+ Download file or directory described in resource frole
316
325
 
317
326
  ```
318
327
  USAGE
@@ -330,17 +339,17 @@ GLOBAL FLAGS
330
339
  --json Format output as json.
331
340
 
332
341
  DESCRIPTION
333
- describe the command here
342
+ Download file or directory described in resource frole
334
343
 
335
344
  EXAMPLES
336
345
  $ sp files download ./resource.json ./pathToDownload
337
346
  ```
338
347
 
339
- _See code: [src/commands/files/download.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/files/download.ts)_
348
+ _See code: [src/commands/files/download.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/files/download.ts)_
340
349
 
341
350
  ## `sp files upload PATH`
342
351
 
343
- describe the command here
352
+ Upload files of directory to remote storage
344
353
 
345
354
  ```
346
355
  USAGE
@@ -364,13 +373,13 @@ GLOBAL FLAGS
364
373
  --json Format output as json.
365
374
 
366
375
  DESCRIPTION
367
- describe the command here
376
+ Upload files of directory to remote storage
368
377
 
369
378
  EXAMPLES
370
379
  $ sp files upload ./file.txt
371
380
  ```
372
381
 
373
- _See code: [src/commands/files/upload.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/files/upload.ts)_
382
+ _See code: [src/commands/files/upload.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/files/upload.ts)_
374
383
 
375
384
  ## `sp help [COMMAND]`
376
385
 
@@ -394,7 +403,7 @@ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.3
394
403
 
395
404
  ## `sp login`
396
405
 
397
- Authorization
406
+ Login to remote server
398
407
 
399
408
  ```
400
409
  USAGE
@@ -405,7 +414,7 @@ GLOBAL FLAGS
405
414
  --json Format output as json.
406
415
 
407
416
  DESCRIPTION
408
- Authorization
417
+ Login to remote server
409
418
 
410
419
  ALIASES
411
420
  $ sp login
@@ -414,19 +423,6 @@ EXAMPLES
414
423
  $ sp login
415
424
  ```
416
425
 
417
- ## `sp storage base`
418
-
419
- ```
420
- USAGE
421
- $ sp storage base [--json] [--config <value>]
422
-
423
- GLOBAL FLAGS
424
- --config=<value> Specify config file.
425
- --json Format output as json.
426
- ```
427
-
428
- _See code: [src/commands/storage/base.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/storage/base.ts)_
429
-
430
426
  ## `sp storage create`
431
427
 
432
428
  Create a new storage entry from file or interactive prompts.
@@ -454,7 +450,7 @@ EXAMPLES
454
450
  $ sp storage create --not-default
455
451
  ```
456
452
 
457
- _See code: [src/commands/storage/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/storage/create.ts)_
453
+ _See code: [src/commands/storage/create.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/storage/create.ts)_
458
454
 
459
455
  ## `sp storage select`
460
456
 
@@ -480,7 +476,7 @@ EXAMPLES
480
476
  $ sp storage select --id=2de3e3a4-0000-1111-2222-333344445555
481
477
  ```
482
478
 
483
- _See code: [src/commands/storage/select.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/storage/select.ts)_
479
+ _See code: [src/commands/storage/select.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/storage/select.ts)_
484
480
 
485
481
  ## `sp storage update`
486
482
 
@@ -507,5 +503,5 @@ EXAMPLES
507
503
  $ sp storage update --id=2de3e3a4-0000-1111-2222-333344445555
508
504
  ```
509
505
 
510
- _See code: [src/commands/storage/update.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.10/src/commands/storage/update.ts)_
506
+ _See code: [src/commands/storage/update.ts](https://github.com/Super-Protocol/sp-cli/blob/v0.0.2-beta.12/src/commands/storage/update.ts)_
511
507
  <!-- commandsstop -->
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../base.js';
2
2
  export declare class InfoCommand extends BaseCommand<typeof InfoCommand> {
3
+ static description: string;
3
4
  init(): Promise<void>;
4
5
  run(): Promise<{
5
6
  address: string;
@@ -2,6 +2,7 @@ import { formatEther } from 'viem';
2
2
  import { StorageService } from '../../services/storage.service.js';
3
3
  import { BaseCommand } from '../base.js';
4
4
  export class InfoCommand extends BaseCommand {
5
+ static description = 'Information about current authorized user';
5
6
  async init() {
6
7
  await super.init();
7
8
  await this.container.initProviderClient().initAccountManager().initConfigManager().build();
@@ -3,7 +3,7 @@ import { StorageService } from '../../services/storage.service.js';
3
3
  import { BaseCommand } from '../base.js';
4
4
  export default class SpLogin extends BaseCommand {
5
5
  static aliases = ['login'];
6
- static description = 'Authorization';
6
+ static description = 'Login to remote server';
7
7
  static examples = [
8
8
  `<%= config.bin %> <%= command.id %>
9
9
  `,
@@ -8,7 +8,7 @@ export default class FilesDownload extends BaseCommand {
8
8
  // eslint-disable-next-line perfectionist/sort-objects
9
9
  localDirectory: Args.string({ description: 'Path to save downloaded file', required: true }),
10
10
  };
11
- static description = 'describe the command here';
11
+ static description = 'Download file or directory described in resource frole';
12
12
  static examples = [
13
13
  '<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload ',
14
14
  ];
@@ -6,7 +6,7 @@ export default class FilesUpload extends BaseCommand {
6
6
  static args = {
7
7
  path: Args.string({ description: 'file or directory to upload', required: true }),
8
8
  };
9
- static description = 'describe the command here';
9
+ static description = 'Upload files of directory to remote storage';
10
10
  static examples = [
11
11
  '<%= config.bin %> <%= command.id %> ./file.txt',
12
12
  ];
@@ -1,44 +1,9 @@
1
1
  {
2
2
  "commands": {
3
- "base": {
4
- "aliases": [],
5
- "args": {},
6
- "flags": {
7
- "json": {
8
- "description": "Format output as json.",
9
- "helpGroup": "GLOBAL",
10
- "name": "json",
11
- "allowNo": false,
12
- "type": "boolean"
13
- },
14
- "config": {
15
- "helpGroup": "GLOBAL",
16
- "name": "config",
17
- "required": false,
18
- "summary": "Specify config file.",
19
- "hasDynamicHelp": false,
20
- "multiple": false,
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
3
  "account:info": {
40
4
  "aliases": [],
41
5
  "args": {},
6
+ "description": "Information about current authorized user",
42
7
  "flags": {
43
8
  "json": {
44
9
  "description": "Format output as json.",
@@ -78,7 +43,7 @@
78
43
  "login"
79
44
  ],
80
45
  "args": {},
81
- "description": "Authorization",
46
+ "description": "Login to remote server",
82
47
  "examples": [
83
48
  "<%= config.bin %> <%= command.id %>\n"
84
49
  ],
@@ -208,34 +173,6 @@
208
173
  "add.js"
209
174
  ]
210
175
  },
211
- "config:base": {
212
- "aliases": [],
213
- "args": {},
214
- "flags": {
215
- "json": {
216
- "description": "Format output as json.",
217
- "helpGroup": "GLOBAL",
218
- "name": "json",
219
- "allowNo": false,
220
- "type": "boolean"
221
- }
222
- },
223
- "hasDynamicHelp": false,
224
- "hiddenAliases": [],
225
- "id": "config:base",
226
- "pluginAlias": "@super-protocol/sp-cli",
227
- "pluginName": "@super-protocol/sp-cli",
228
- "pluginType": "core",
229
- "strict": true,
230
- "enableJsonFlag": true,
231
- "isESM": true,
232
- "relativePath": [
233
- "dist",
234
- "commands",
235
- "config",
236
- "base.js"
237
- ]
238
- },
239
176
  "config:create": {
240
177
  "aliases": [],
241
178
  "args": {},
@@ -489,7 +426,7 @@
489
426
  "required": true
490
427
  }
491
428
  },
492
- "description": "describe the command here",
429
+ "description": "Download file or directory described in resource frole",
493
430
  "examples": [
494
431
  "<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload "
495
432
  ],
@@ -545,7 +482,7 @@
545
482
  "required": true
546
483
  }
547
484
  },
548
- "description": "describe the command here",
485
+ "description": "Upload files of directory to remote storage",
549
486
  "examples": [
550
487
  "<%= config.bin %> <%= command.id %> ./file.txt"
551
488
  ],
@@ -630,43 +567,6 @@
630
567
  "upload.js"
631
568
  ]
632
569
  },
633
- "storage:base": {
634
- "aliases": [],
635
- "args": {},
636
- "flags": {
637
- "json": {
638
- "description": "Format output as json.",
639
- "helpGroup": "GLOBAL",
640
- "name": "json",
641
- "allowNo": false,
642
- "type": "boolean"
643
- },
644
- "config": {
645
- "helpGroup": "GLOBAL",
646
- "name": "config",
647
- "required": false,
648
- "summary": "Specify config file.",
649
- "hasDynamicHelp": false,
650
- "multiple": false,
651
- "type": "option"
652
- }
653
- },
654
- "hasDynamicHelp": false,
655
- "hiddenAliases": [],
656
- "id": "storage:base",
657
- "pluginAlias": "@super-protocol/sp-cli",
658
- "pluginName": "@super-protocol/sp-cli",
659
- "pluginType": "core",
660
- "strict": true,
661
- "enableJsonFlag": true,
662
- "isESM": true,
663
- "relativePath": [
664
- "dist",
665
- "commands",
666
- "storage",
667
- "base.js"
668
- ]
669
- },
670
570
  "storage:create": {
671
571
  "aliases": [],
672
572
  "args": {},
@@ -718,7 +618,6 @@
718
618
  "pluginName": "@super-protocol/sp-cli",
719
619
  "pluginType": "core",
720
620
  "strict": true,
721
- "enableJsonFlag": true,
722
621
  "isESM": true,
723
622
  "relativePath": [
724
623
  "dist",
@@ -768,7 +667,6 @@
768
667
  "pluginName": "@super-protocol/sp-cli",
769
668
  "pluginType": "core",
770
669
  "strict": true,
771
- "enableJsonFlag": true,
772
670
  "isESM": true,
773
671
  "relativePath": [
774
672
  "dist",
@@ -826,7 +724,6 @@
826
724
  "pluginName": "@super-protocol/sp-cli",
827
725
  "pluginType": "core",
828
726
  "strict": true,
829
- "enableJsonFlag": true,
830
727
  "isESM": true,
831
728
  "relativePath": [
832
729
  "dist",
@@ -836,5 +733,5 @@
836
733
  ]
837
734
  }
838
735
  },
839
- "version": "0.0.2-beta.10"
736
+ "version": "0.0.2-beta.12"
840
737
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@super-protocol/sp-cli",
3
3
  "description": "SuperProtocol Command line interface",
4
- "version": "0.0.2-beta.10",
4
+ "version": "0.0.2-beta.12",
5
5
  "author": "SuperProtocol",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -77,11 +77,12 @@
77
77
  "globPatterns": [
78
78
  "**/*.+(js|cjs|mjs|ts|tsx|mts|cts)",
79
79
  "!**/*.+(d.*|test.*|spec.*|helpers.*)?(x)",
80
- "!**/base.ts"
80
+ "!**/base.(ts|js)"
81
81
  ]
82
82
  },
83
83
  "plugins": [
84
84
  "@oclif/plugin-help",
85
+ "@oclif/plugin-autocomplete",
85
86
  "@oclif/plugin-warn-if-update-available"
86
87
  ],
87
88
  "warn-if-update-available": {