@fonoster/ctl 0.3.2 → 0.3.6-alpha.3
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 +173 -52
- package/dist/base/delete.js +7 -2
- package/dist/commands/agents/create.js +1 -1
- package/dist/commands/apps/create.d.ts +6 -0
- package/dist/commands/apps/create.js +186 -0
- package/dist/commands/apps/delete.d.ts +9 -0
- package/dist/commands/apps/delete.js +36 -0
- package/dist/commands/apps/list.d.ts +10 -0
- package/dist/commands/apps/list.js +90 -0
- package/dist/commands/apps/update.d.ts +9 -0
- package/dist/commands/apps/update.js +206 -0
- package/dist/commands/auth/login.js +1 -1
- package/dist/commands/domains/create.js +1 -1
- package/dist/commands/numbers/create.js +1 -1
- package/dist/commands/numbers/update.js +15 -4
- package/dist/commands/projects/create.js +1 -1
- package/dist/commands/providers/create.js +1 -1
- package/dist/commands/secrets/create.d.ts +14 -0
- package/dist/commands/secrets/create.js +64 -0
- package/dist/commands/secrets/delete.d.ts +10 -0
- package/dist/commands/secrets/delete.js +57 -0
- package/dist/commands/secrets/list.d.ts +10 -0
- package/dist/commands/secrets/list.js +71 -0
- package/dist/data/voices.d.ts +1 -0
- package/dist/data/voices.js +319 -0
- package/dist/decorators/project_guard.d.ts +9 -0
- package/dist/decorators/project_guard.js +26 -0
- package/dist/help.d.ts +3 -1
- package/dist/help.js +21 -16
- package/oclif.manifest.json +1 -1
- package/package.json +23 -42
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ npm install -g @fonoster/ctl
|
|
|
21
21
|
$ fonoster COMMAND
|
|
22
22
|
running command...
|
|
23
23
|
$ fonoster (-v|--version|version)
|
|
24
|
-
@fonoster/ctl/0.3.
|
|
24
|
+
@fonoster/ctl/0.3.6-alpha.3 darwin-x64 node-v14.16.0
|
|
25
25
|
$ fonoster --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ fonoster COMMAND
|
|
@@ -37,6 +37,10 @@ USAGE
|
|
|
37
37
|
* [`fonoster agents:get [REF]`](#fonoster-agentsget-ref)
|
|
38
38
|
* [`fonoster agents:list`](#fonoster-agentslist)
|
|
39
39
|
* [`fonoster agents:update [REF]`](#fonoster-agentsupdate-ref)
|
|
40
|
+
* [`fonoster apps:create`](#fonoster-appscreate)
|
|
41
|
+
* [`fonoster apps:delete [REF]`](#fonoster-appsdelete-ref)
|
|
42
|
+
* [`fonoster apps:list`](#fonoster-appslist)
|
|
43
|
+
* [`fonoster apps:update [REF]`](#fonoster-appsupdate-ref)
|
|
40
44
|
* [`fonoster auth:login`](#fonoster-authlogin)
|
|
41
45
|
* [`fonoster auth:logout`](#fonoster-authlogout)
|
|
42
46
|
* [`fonoster bug`](#fonoster-bug)
|
|
@@ -69,6 +73,9 @@ USAGE
|
|
|
69
73
|
* [`fonoster providers:get [REF]`](#fonoster-providersget-ref)
|
|
70
74
|
* [`fonoster providers:list`](#fonoster-providerslist)
|
|
71
75
|
* [`fonoster providers:update [REF]`](#fonoster-providersupdate-ref)
|
|
76
|
+
* [`fonoster secrets:create [NAME]`](#fonoster-secretscreate-name)
|
|
77
|
+
* [`fonoster secrets:delete [NAME]`](#fonoster-secretsdelete-name)
|
|
78
|
+
* [`fonoster secrets:list`](#fonoster-secretslist)
|
|
72
79
|
|
|
73
80
|
## `fonoster agents:create`
|
|
74
81
|
|
|
@@ -83,7 +90,7 @@ DESCRIPTION
|
|
|
83
90
|
Create a new Fonoster Agent
|
|
84
91
|
```
|
|
85
92
|
|
|
86
|
-
_See code: [dist/commands/agents/create.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
93
|
+
_See code: [dist/commands/agents/create.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/agents/create.js)_
|
|
87
94
|
|
|
88
95
|
## `fonoster agents:delete [REF]`
|
|
89
96
|
|
|
@@ -98,7 +105,7 @@ ALIASES
|
|
|
98
105
|
$ fonoster agents:rm
|
|
99
106
|
```
|
|
100
107
|
|
|
101
|
-
_See code: [dist/commands/agents/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
108
|
+
_See code: [dist/commands/agents/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/agents/delete.js)_
|
|
102
109
|
|
|
103
110
|
## `fonoster agents:get [REF]`
|
|
104
111
|
|
|
@@ -109,7 +116,7 @@ USAGE
|
|
|
109
116
|
$ fonoster agents:get [REF]
|
|
110
117
|
```
|
|
111
118
|
|
|
112
|
-
_See code: [dist/commands/agents/get.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
119
|
+
_See code: [dist/commands/agents/get.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/agents/get.js)_
|
|
113
120
|
|
|
114
121
|
## `fonoster agents:list`
|
|
115
122
|
|
|
@@ -130,7 +137,7 @@ ALIASES
|
|
|
130
137
|
$ fonoster agents:ls
|
|
131
138
|
```
|
|
132
139
|
|
|
133
|
-
_See code: [dist/commands/agents/list.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
140
|
+
_See code: [dist/commands/agents/list.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/agents/list.js)_
|
|
134
141
|
|
|
135
142
|
## `fonoster agents:update [REF]`
|
|
136
143
|
|
|
@@ -145,7 +152,73 @@ DESCRIPTION
|
|
|
145
152
|
Update a Fonoster Agent
|
|
146
153
|
```
|
|
147
154
|
|
|
148
|
-
_See code: [dist/commands/agents/update.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
155
|
+
_See code: [dist/commands/agents/update.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/agents/update.js)_
|
|
156
|
+
|
|
157
|
+
## `fonoster apps:create`
|
|
158
|
+
|
|
159
|
+
create a new Fonoster App
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
USAGE
|
|
163
|
+
$ fonoster apps:create
|
|
164
|
+
|
|
165
|
+
DESCRIPTION
|
|
166
|
+
...
|
|
167
|
+
Create a new Fonoster App
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
_See code: [dist/commands/apps/create.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/apps/create.js)_
|
|
171
|
+
|
|
172
|
+
## `fonoster apps:delete [REF]`
|
|
173
|
+
|
|
174
|
+
delete a Fonoster Application
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
USAGE
|
|
178
|
+
$ fonoster apps:delete [REF]
|
|
179
|
+
|
|
180
|
+
ALIASES
|
|
181
|
+
$ fonoster apps:del
|
|
182
|
+
$ fonoster apps:rm
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
_See code: [dist/commands/apps/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/apps/delete.js)_
|
|
186
|
+
|
|
187
|
+
## `fonoster apps:list`
|
|
188
|
+
|
|
189
|
+
list all Fonoster Apps you have access to
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
USAGE
|
|
193
|
+
$ fonoster apps:list
|
|
194
|
+
|
|
195
|
+
OPTIONS
|
|
196
|
+
-s, --size=size [default: 25] number of result per page
|
|
197
|
+
|
|
198
|
+
DESCRIPTION
|
|
199
|
+
...
|
|
200
|
+
List all Fonoster Apps you have access to
|
|
201
|
+
|
|
202
|
+
ALIASES
|
|
203
|
+
$ fonoster apps:ls
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
_See code: [dist/commands/apps/list.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/apps/list.js)_
|
|
207
|
+
|
|
208
|
+
## `fonoster apps:update [REF]`
|
|
209
|
+
|
|
210
|
+
update a new Fonoster App
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
USAGE
|
|
214
|
+
$ fonoster apps:update [REF]
|
|
215
|
+
|
|
216
|
+
DESCRIPTION
|
|
217
|
+
...
|
|
218
|
+
Update a new Fonoster App
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
_See code: [dist/commands/apps/update.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/apps/update.js)_
|
|
149
222
|
|
|
150
223
|
## `fonoster auth:login`
|
|
151
224
|
|
|
@@ -156,7 +229,7 @@ USAGE
|
|
|
156
229
|
$ fonoster auth:login
|
|
157
230
|
```
|
|
158
231
|
|
|
159
|
-
_See code: [dist/commands/auth/login.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
232
|
+
_See code: [dist/commands/auth/login.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/auth/login.js)_
|
|
160
233
|
|
|
161
234
|
## `fonoster auth:logout`
|
|
162
235
|
|
|
@@ -167,7 +240,7 @@ USAGE
|
|
|
167
240
|
$ fonoster auth:logout
|
|
168
241
|
```
|
|
169
242
|
|
|
170
|
-
_See code: [dist/commands/auth/logout.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
243
|
+
_See code: [dist/commands/auth/logout.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/auth/logout.js)_
|
|
171
244
|
|
|
172
245
|
## `fonoster bug`
|
|
173
246
|
|
|
@@ -182,7 +255,7 @@ DESCRIPTION
|
|
|
182
255
|
Opens github issues with a predefine bug template
|
|
183
256
|
```
|
|
184
257
|
|
|
185
|
-
_See code: [dist/commands/bug.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
258
|
+
_See code: [dist/commands/bug.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/bug.js)_
|
|
186
259
|
|
|
187
260
|
## `fonoster domains:create`
|
|
188
261
|
|
|
@@ -197,7 +270,7 @@ DESCRIPTION
|
|
|
197
270
|
Create a new Fonoster Domain
|
|
198
271
|
```
|
|
199
272
|
|
|
200
|
-
_See code: [dist/commands/domains/create.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
273
|
+
_See code: [dist/commands/domains/create.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/domains/create.js)_
|
|
201
274
|
|
|
202
275
|
## `fonoster domains:delete [REF]`
|
|
203
276
|
|
|
@@ -212,7 +285,7 @@ ALIASES
|
|
|
212
285
|
$ fonoster domains:rm
|
|
213
286
|
```
|
|
214
287
|
|
|
215
|
-
_See code: [dist/commands/domains/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
288
|
+
_See code: [dist/commands/domains/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/domains/delete.js)_
|
|
216
289
|
|
|
217
290
|
## `fonoster domains:get [REF]`
|
|
218
291
|
|
|
@@ -223,7 +296,7 @@ USAGE
|
|
|
223
296
|
$ fonoster domains:get [REF]
|
|
224
297
|
```
|
|
225
298
|
|
|
226
|
-
_See code: [dist/commands/domains/get.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
299
|
+
_See code: [dist/commands/domains/get.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/domains/get.js)_
|
|
227
300
|
|
|
228
301
|
## `fonoster domains:list`
|
|
229
302
|
|
|
@@ -244,7 +317,7 @@ ALIASES
|
|
|
244
317
|
$ fonoster domains:ls
|
|
245
318
|
```
|
|
246
319
|
|
|
247
|
-
_See code: [dist/commands/domains/list.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
320
|
+
_See code: [dist/commands/domains/list.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/domains/list.js)_
|
|
248
321
|
|
|
249
322
|
## `fonoster domains:update [REF]`
|
|
250
323
|
|
|
@@ -259,7 +332,7 @@ DESCRIPTION
|
|
|
259
332
|
Update a Fonoster Domain
|
|
260
333
|
```
|
|
261
334
|
|
|
262
|
-
_See code: [dist/commands/domains/update.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
335
|
+
_See code: [dist/commands/domains/update.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/domains/update.js)_
|
|
263
336
|
|
|
264
337
|
## `fonoster feedback`
|
|
265
338
|
|
|
@@ -274,7 +347,7 @@ DESCRIPTION
|
|
|
274
347
|
Help us improve by providing some feedback
|
|
275
348
|
```
|
|
276
349
|
|
|
277
|
-
_See code: [dist/commands/feedback.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
350
|
+
_See code: [dist/commands/feedback.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/feedback.js)_
|
|
278
351
|
|
|
279
352
|
## `fonoster help [COMMAND]`
|
|
280
353
|
|
|
@@ -306,7 +379,7 @@ DESCRIPTION
|
|
|
306
379
|
Create a new Fonoster Number
|
|
307
380
|
```
|
|
308
381
|
|
|
309
|
-
_See code: [dist/commands/numbers/create.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
382
|
+
_See code: [dist/commands/numbers/create.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/numbers/create.js)_
|
|
310
383
|
|
|
311
384
|
## `fonoster numbers:delete [REF]`
|
|
312
385
|
|
|
@@ -321,7 +394,7 @@ ALIASES
|
|
|
321
394
|
$ fonoster numbers:rm
|
|
322
395
|
```
|
|
323
396
|
|
|
324
|
-
_See code: [dist/commands/numbers/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
397
|
+
_See code: [dist/commands/numbers/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/numbers/delete.js)_
|
|
325
398
|
|
|
326
399
|
## `fonoster numbers:get [REF]`
|
|
327
400
|
|
|
@@ -332,7 +405,7 @@ USAGE
|
|
|
332
405
|
$ fonoster numbers:get [REF]
|
|
333
406
|
```
|
|
334
407
|
|
|
335
|
-
_See code: [dist/commands/numbers/get.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
408
|
+
_See code: [dist/commands/numbers/get.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/numbers/get.js)_
|
|
336
409
|
|
|
337
410
|
## `fonoster numbers:list`
|
|
338
411
|
|
|
@@ -353,7 +426,7 @@ ALIASES
|
|
|
353
426
|
$ fonoster numbers:ls
|
|
354
427
|
```
|
|
355
428
|
|
|
356
|
-
_See code: [dist/commands/numbers/list.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
429
|
+
_See code: [dist/commands/numbers/list.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/numbers/list.js)_
|
|
357
430
|
|
|
358
431
|
## `fonoster numbers:update [REF]`
|
|
359
432
|
|
|
@@ -368,60 +441,60 @@ DESCRIPTION
|
|
|
368
441
|
Update a Fonoster Number
|
|
369
442
|
```
|
|
370
443
|
|
|
371
|
-
_See code: [dist/commands/numbers/update.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
444
|
+
_See code: [dist/commands/numbers/update.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/numbers/update.js)_
|
|
372
445
|
|
|
373
446
|
## `fonoster plugins`
|
|
374
447
|
|
|
375
|
-
|
|
448
|
+
List installed plugins.
|
|
376
449
|
|
|
377
450
|
```
|
|
378
451
|
USAGE
|
|
379
452
|
$ fonoster plugins
|
|
380
453
|
|
|
381
454
|
OPTIONS
|
|
382
|
-
--core
|
|
455
|
+
--core Show core plugins.
|
|
383
456
|
|
|
384
457
|
EXAMPLE
|
|
385
458
|
$ fonoster plugins
|
|
386
459
|
```
|
|
387
460
|
|
|
388
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
461
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/index.ts)_
|
|
389
462
|
|
|
390
463
|
## `fonoster plugins:inspect PLUGIN...`
|
|
391
464
|
|
|
392
|
-
|
|
465
|
+
Displays installation properties of a plugin.
|
|
393
466
|
|
|
394
467
|
```
|
|
395
468
|
USAGE
|
|
396
469
|
$ fonoster plugins:inspect PLUGIN...
|
|
397
470
|
|
|
398
471
|
ARGUMENTS
|
|
399
|
-
PLUGIN [default: .]
|
|
472
|
+
PLUGIN [default: .] Plugin to inspect.
|
|
400
473
|
|
|
401
474
|
OPTIONS
|
|
402
|
-
-h, --help
|
|
475
|
+
-h, --help Show CLI help.
|
|
403
476
|
-v, --verbose
|
|
404
477
|
|
|
405
478
|
EXAMPLE
|
|
406
479
|
$ fonoster plugins:inspect myplugin
|
|
407
480
|
```
|
|
408
481
|
|
|
409
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
482
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/inspect.ts)_
|
|
410
483
|
|
|
411
484
|
## `fonoster plugins:install PLUGIN...`
|
|
412
485
|
|
|
413
|
-
|
|
486
|
+
Installs a plugin into the CLI.
|
|
414
487
|
|
|
415
488
|
```
|
|
416
489
|
USAGE
|
|
417
490
|
$ fonoster plugins:install PLUGIN...
|
|
418
491
|
|
|
419
492
|
ARGUMENTS
|
|
420
|
-
PLUGIN
|
|
493
|
+
PLUGIN Plugin to install.
|
|
421
494
|
|
|
422
495
|
OPTIONS
|
|
423
|
-
-f, --force yarn install with force flag
|
|
424
|
-
-h, --help
|
|
496
|
+
-f, --force Run yarn install with force flag.
|
|
497
|
+
-h, --help Show CLI help.
|
|
425
498
|
-v, --verbose
|
|
426
499
|
|
|
427
500
|
DESCRIPTION
|
|
@@ -442,11 +515,11 @@ EXAMPLES
|
|
|
442
515
|
$ fonoster plugins:install someuser/someplugin
|
|
443
516
|
```
|
|
444
517
|
|
|
445
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
518
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/install.ts)_
|
|
446
519
|
|
|
447
520
|
## `fonoster plugins:link PLUGIN`
|
|
448
521
|
|
|
449
|
-
|
|
522
|
+
Links a plugin into the CLI for development.
|
|
450
523
|
|
|
451
524
|
```
|
|
452
525
|
USAGE
|
|
@@ -456,7 +529,7 @@ ARGUMENTS
|
|
|
456
529
|
PATH [default: .] path to plugin
|
|
457
530
|
|
|
458
531
|
OPTIONS
|
|
459
|
-
-h, --help
|
|
532
|
+
-h, --help Show CLI help.
|
|
460
533
|
-v, --verbose
|
|
461
534
|
|
|
462
535
|
DESCRIPTION
|
|
@@ -469,11 +542,11 @@ EXAMPLE
|
|
|
469
542
|
$ fonoster plugins:link myplugin
|
|
470
543
|
```
|
|
471
544
|
|
|
472
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
545
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/link.ts)_
|
|
473
546
|
|
|
474
547
|
## `fonoster plugins:uninstall PLUGIN...`
|
|
475
548
|
|
|
476
|
-
|
|
549
|
+
Removes a plugin from the CLI.
|
|
477
550
|
|
|
478
551
|
```
|
|
479
552
|
USAGE
|
|
@@ -483,7 +556,7 @@ ARGUMENTS
|
|
|
483
556
|
PLUGIN plugin to uninstall
|
|
484
557
|
|
|
485
558
|
OPTIONS
|
|
486
|
-
-h, --help
|
|
559
|
+
-h, --help Show CLI help.
|
|
487
560
|
-v, --verbose
|
|
488
561
|
|
|
489
562
|
ALIASES
|
|
@@ -491,22 +564,22 @@ ALIASES
|
|
|
491
564
|
$ fonoster plugins:remove
|
|
492
565
|
```
|
|
493
566
|
|
|
494
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
567
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/uninstall.ts)_
|
|
495
568
|
|
|
496
569
|
## `fonoster plugins:update`
|
|
497
570
|
|
|
498
|
-
|
|
571
|
+
Update installed plugins.
|
|
499
572
|
|
|
500
573
|
```
|
|
501
574
|
USAGE
|
|
502
575
|
$ fonoster plugins:update
|
|
503
576
|
|
|
504
577
|
OPTIONS
|
|
505
|
-
-h, --help
|
|
578
|
+
-h, --help Show CLI help.
|
|
506
579
|
-v, --verbose
|
|
507
580
|
```
|
|
508
581
|
|
|
509
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
582
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.1.0/src/commands/plugins/update.ts)_
|
|
510
583
|
|
|
511
584
|
## `fonoster projects:create`
|
|
512
585
|
|
|
@@ -521,7 +594,7 @@ DESCRIPTION
|
|
|
521
594
|
Create a new Fonoster Project
|
|
522
595
|
```
|
|
523
596
|
|
|
524
|
-
_See code: [dist/commands/projects/create.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
597
|
+
_See code: [dist/commands/projects/create.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/projects/create.js)_
|
|
525
598
|
|
|
526
599
|
## `fonoster projects:delete [REF]`
|
|
527
600
|
|
|
@@ -536,7 +609,7 @@ ALIASES
|
|
|
536
609
|
$ fonoster projects:rm
|
|
537
610
|
```
|
|
538
611
|
|
|
539
|
-
_See code: [dist/commands/projects/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
612
|
+
_See code: [dist/commands/projects/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/projects/delete.js)_
|
|
540
613
|
|
|
541
614
|
## `fonoster projects:get [REF]`
|
|
542
615
|
|
|
@@ -547,7 +620,7 @@ USAGE
|
|
|
547
620
|
$ fonoster projects:get [REF]
|
|
548
621
|
```
|
|
549
622
|
|
|
550
|
-
_See code: [dist/commands/projects/get.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
623
|
+
_See code: [dist/commands/projects/get.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/projects/get.js)_
|
|
551
624
|
|
|
552
625
|
## `fonoster projects:list`
|
|
553
626
|
|
|
@@ -565,7 +638,7 @@ ALIASES
|
|
|
565
638
|
$ fonoster projects:ls
|
|
566
639
|
```
|
|
567
640
|
|
|
568
|
-
_See code: [dist/commands/projects/list.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
641
|
+
_See code: [dist/commands/projects/list.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/projects/list.js)_
|
|
569
642
|
|
|
570
643
|
## `fonoster projects:renew [REF]`
|
|
571
644
|
|
|
@@ -580,7 +653,7 @@ DESCRIPTION
|
|
|
580
653
|
Renew the credentials of a Fonoster Project
|
|
581
654
|
```
|
|
582
655
|
|
|
583
|
-
_See code: [dist/commands/projects/renew.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
656
|
+
_See code: [dist/commands/projects/renew.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/projects/renew.js)_
|
|
584
657
|
|
|
585
658
|
## `fonoster projects:use [REF]`
|
|
586
659
|
|
|
@@ -595,7 +668,7 @@ DESCRIPTION
|
|
|
595
668
|
Set a default Fonoster Project
|
|
596
669
|
```
|
|
597
670
|
|
|
598
|
-
_See code: [dist/commands/projects/use.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
671
|
+
_See code: [dist/commands/projects/use.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/projects/use.js)_
|
|
599
672
|
|
|
600
673
|
## `fonoster providers:create`
|
|
601
674
|
|
|
@@ -610,7 +683,7 @@ DESCRIPTION
|
|
|
610
683
|
Create a new Fonoster Provider
|
|
611
684
|
```
|
|
612
685
|
|
|
613
|
-
_See code: [dist/commands/providers/create.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
686
|
+
_See code: [dist/commands/providers/create.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/providers/create.js)_
|
|
614
687
|
|
|
615
688
|
## `fonoster providers:delete [REF]`
|
|
616
689
|
|
|
@@ -625,7 +698,7 @@ ALIASES
|
|
|
625
698
|
$ fonoster providers:rm
|
|
626
699
|
```
|
|
627
700
|
|
|
628
|
-
_See code: [dist/commands/providers/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
701
|
+
_See code: [dist/commands/providers/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/providers/delete.js)_
|
|
629
702
|
|
|
630
703
|
## `fonoster providers:get [REF]`
|
|
631
704
|
|
|
@@ -636,7 +709,7 @@ USAGE
|
|
|
636
709
|
$ fonoster providers:get [REF]
|
|
637
710
|
```
|
|
638
711
|
|
|
639
|
-
_See code: [dist/commands/providers/get.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
712
|
+
_See code: [dist/commands/providers/get.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/providers/get.js)_
|
|
640
713
|
|
|
641
714
|
## `fonoster providers:list`
|
|
642
715
|
|
|
@@ -657,7 +730,7 @@ ALIASES
|
|
|
657
730
|
$ fonoster providers:ls
|
|
658
731
|
```
|
|
659
732
|
|
|
660
|
-
_See code: [dist/commands/providers/list.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
733
|
+
_See code: [dist/commands/providers/list.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/providers/list.js)_
|
|
661
734
|
|
|
662
735
|
## `fonoster providers:update [REF]`
|
|
663
736
|
|
|
@@ -672,5 +745,53 @@ DESCRIPTION
|
|
|
672
745
|
Update a Fonoster Provider
|
|
673
746
|
```
|
|
674
747
|
|
|
675
|
-
_See code: [dist/commands/providers/update.js](https://github.com/fonoster/fonoster/blob/v0.3.
|
|
748
|
+
_See code: [dist/commands/providers/update.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/providers/update.js)_
|
|
749
|
+
|
|
750
|
+
## `fonoster secrets:create [NAME]`
|
|
751
|
+
|
|
752
|
+
create a Fonoster secret.
|
|
753
|
+
|
|
754
|
+
```
|
|
755
|
+
USAGE
|
|
756
|
+
$ fonoster secrets:create [NAME]
|
|
757
|
+
|
|
758
|
+
OPTIONS
|
|
759
|
+
-h, --help show CLI help
|
|
760
|
+
-l, --from-literal=from-literal pass from literal
|
|
761
|
+
-s, --from-stdin pass from stdin
|
|
762
|
+
```
|
|
763
|
+
|
|
764
|
+
_See code: [dist/commands/secrets/create.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/secrets/create.js)_
|
|
765
|
+
|
|
766
|
+
## `fonoster secrets:delete [NAME]`
|
|
767
|
+
|
|
768
|
+
remove Fonoster secret
|
|
769
|
+
|
|
770
|
+
```
|
|
771
|
+
USAGE
|
|
772
|
+
$ fonoster secrets:delete [NAME]
|
|
773
|
+
|
|
774
|
+
ALIASES
|
|
775
|
+
$ fonoster secrets:del
|
|
776
|
+
$ fonoster secrets:rm
|
|
777
|
+
```
|
|
778
|
+
|
|
779
|
+
_See code: [dist/commands/secrets/delete.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/secrets/delete.js)_
|
|
780
|
+
|
|
781
|
+
## `fonoster secrets:list`
|
|
782
|
+
|
|
783
|
+
list of the secrets you have access to
|
|
784
|
+
|
|
785
|
+
```
|
|
786
|
+
USAGE
|
|
787
|
+
$ fonoster secrets:list
|
|
788
|
+
|
|
789
|
+
OPTIONS
|
|
790
|
+
-s, --size=size [default: 25] secrets of result per page
|
|
791
|
+
|
|
792
|
+
ALIASES
|
|
793
|
+
$ fonoster secrets:ls
|
|
794
|
+
```
|
|
795
|
+
|
|
796
|
+
_See code: [dist/commands/secrets/list.js](https://github.com/fonoster/fonoster/blob/v0.3.6-alpha.3/dist/commands/secrets/list.js)_
|
|
676
797
|
<!-- commandsstop -->
|
package/dist/base/delete.js
CHANGED
|
@@ -6,12 +6,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
require("../config");
|
|
7
7
|
const command_1 = __importDefault(require("@oclif/command"));
|
|
8
8
|
const cli_ux_1 = require("cli-ux");
|
|
9
|
+
const errors_1 = require("@oclif/errors");
|
|
9
10
|
class default_1 extends command_1.default {
|
|
10
11
|
async deleteResource(API, funcName) {
|
|
12
|
+
if (!this.ref) {
|
|
13
|
+
cli_ux_1.cli.action.stop();
|
|
14
|
+
throw new errors_1.CLIError("You must provide a resource ref before continuing");
|
|
15
|
+
}
|
|
11
16
|
cli_ux_1.cli.action.start(`Deleting resource ${this.ref}`);
|
|
12
|
-
await API[funcName](this.ref);
|
|
17
|
+
const results = await API[funcName](this.ref);
|
|
13
18
|
await cli_ux_1.cli.wait(1000);
|
|
14
|
-
cli_ux_1.cli.action.stop("Done");
|
|
19
|
+
cli_ux_1.cli.action.stop(results ? "Done" : "Failed");
|
|
15
20
|
}
|
|
16
21
|
async init() {
|
|
17
22
|
const { args } = this.parse(this.constructor);
|