@routr/ctl 2.0.8-alpha.24 → 2.0.8-alpha.27

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.
Files changed (39) hide show
  1. package/README.md +170 -51
  2. package/dist/base.d.ts +0 -1
  3. package/dist/base.js +0 -4
  4. package/dist/commands/acl/describe.d.ts +10 -0
  5. package/dist/commands/acl/describe.js +62 -0
  6. package/dist/commands/acl/get.d.ts +1 -0
  7. package/dist/commands/acl/get.js +4 -19
  8. package/dist/commands/agents/create.js +3 -8
  9. package/dist/commands/agents/describe.d.ts +10 -0
  10. package/dist/commands/agents/describe.js +72 -0
  11. package/dist/commands/agents/get.d.ts +1 -0
  12. package/dist/commands/agents/get.js +4 -26
  13. package/dist/commands/agents/update.js +4 -9
  14. package/dist/commands/credentials/describe.d.ts +10 -0
  15. package/dist/commands/credentials/describe.js +61 -0
  16. package/dist/commands/credentials/get.d.ts +1 -0
  17. package/dist/commands/credentials/get.js +5 -20
  18. package/dist/commands/domains/describe.d.ts +10 -0
  19. package/dist/commands/domains/describe.js +78 -0
  20. package/dist/commands/domains/get.d.ts +1 -0
  21. package/dist/commands/domains/get.js +4 -24
  22. package/dist/commands/numbers/describe.d.ts +10 -0
  23. package/dist/commands/numbers/describe.js +72 -0
  24. package/dist/commands/numbers/get.d.ts +1 -0
  25. package/dist/commands/numbers/get.js +4 -24
  26. package/dist/commands/peers/create.js +6 -0
  27. package/dist/commands/peers/describe.d.ts +10 -0
  28. package/dist/commands/peers/describe.js +80 -0
  29. package/dist/commands/peers/get.d.ts +1 -0
  30. package/dist/commands/peers/get.js +6 -43
  31. package/dist/commands/peers/update.js +6 -0
  32. package/dist/commands/trunks/create.js +15 -11
  33. package/dist/commands/trunks/describe.d.ts +10 -0
  34. package/dist/commands/trunks/describe.js +85 -0
  35. package/dist/commands/trunks/get.d.ts +1 -0
  36. package/dist/commands/trunks/get.js +6 -33
  37. package/dist/commands/trunks/update.js +15 -11
  38. package/oclif.manifest.json +267 -183
  39. package/package.json +8 -5
package/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @routr/ctl
20
20
  $ rctl COMMAND
21
21
  running command...
22
22
  $ rctl (--version)
23
- @routr/ctl/2.0.8-alpha.24 darwin-x64 node-v16.18.1
23
+ @routr/ctl/2.0.8-alpha.27 darwin-x64 node-v16.18.1
24
24
  $ rctl --help [COMMAND]
25
25
  USAGE
26
26
  $ rctl COMMAND
@@ -31,27 +31,33 @@ USAGE
31
31
  <!-- commands -->
32
32
  * [`rctl acl create`](#rctl-acl-create)
33
33
  * [`rctl acl delete [REF]`](#rctl-acl-delete-ref)
34
+ * [`rctl acl describe [REF]`](#rctl-acl-describe-ref)
34
35
  * [`rctl acl get [REF]`](#rctl-acl-get-ref)
35
36
  * [`rctl acl update REF`](#rctl-acl-update-ref)
36
37
  * [`rctl agents create`](#rctl-agents-create)
37
38
  * [`rctl agents delete [REF]`](#rctl-agents-delete-ref)
39
+ * [`rctl agents describe [REF]`](#rctl-agents-describe-ref)
38
40
  * [`rctl agents get [REF]`](#rctl-agents-get-ref)
39
41
  * [`rctl agents update REF`](#rctl-agents-update-ref)
40
42
  * [`rctl autocomplete [SHELL]`](#rctl-autocomplete-shell)
41
43
  * [`rctl credentials create`](#rctl-credentials-create)
42
44
  * [`rctl credentials delete [REF]`](#rctl-credentials-delete-ref)
45
+ * [`rctl credentials describe [REF]`](#rctl-credentials-describe-ref)
43
46
  * [`rctl credentials get [REF]`](#rctl-credentials-get-ref)
44
47
  * [`rctl credentials update REF`](#rctl-credentials-update-ref)
45
48
  * [`rctl domains create`](#rctl-domains-create)
46
49
  * [`rctl domains delete [REF]`](#rctl-domains-delete-ref)
50
+ * [`rctl domains describe [REF]`](#rctl-domains-describe-ref)
47
51
  * [`rctl domains get [REF]`](#rctl-domains-get-ref)
48
52
  * [`rctl domains update REF`](#rctl-domains-update-ref)
49
53
  * [`rctl numbers create`](#rctl-numbers-create)
50
54
  * [`rctl numbers delete [REF]`](#rctl-numbers-delete-ref)
55
+ * [`rctl numbers describe [REF]`](#rctl-numbers-describe-ref)
51
56
  * [`rctl numbers get [REF]`](#rctl-numbers-get-ref)
52
57
  * [`rctl numbers update REF`](#rctl-numbers-update-ref)
53
58
  * [`rctl peers create`](#rctl-peers-create)
54
59
  * [`rctl peers delete [REF]`](#rctl-peers-delete-ref)
60
+ * [`rctl peers describe [REF]`](#rctl-peers-describe-ref)
55
61
  * [`rctl peers get [REF]`](#rctl-peers-get-ref)
56
62
  * [`rctl peers update REF`](#rctl-peers-update-ref)
57
63
  * [`rctl plugins`](#rctl-plugins)
@@ -65,6 +71,7 @@ USAGE
65
71
  * [`rctl plugins update`](#rctl-plugins-update)
66
72
  * [`rctl trunks create`](#rctl-trunks-create)
67
73
  * [`rctl trunks delete [REF]`](#rctl-trunks-delete-ref)
74
+ * [`rctl trunks describe [REF]`](#rctl-trunks-describe-ref)
68
75
  * [`rctl trunks get [REF]`](#rctl-trunks-get-ref)
69
76
  * [`rctl trunks update REF`](#rctl-trunks-update-ref)
70
77
 
@@ -74,12 +81,11 @@ Creates a new ACL
74
81
 
75
82
  ```
76
83
  USAGE
77
- $ rctl acl create [-x] [-i] [-e <value>]
84
+ $ rctl acl create [-i] [-e <value>]
78
85
 
79
86
  FLAGS
80
87
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
81
88
  -i, --insecure allow insecure connections to the routr server
82
- -x, --extended extended output format
83
89
 
84
90
  DESCRIPTION
85
91
  Creates a new ACL
@@ -95,12 +101,11 @@ Deletes an Access Control List
95
101
 
96
102
  ```
97
103
  USAGE
98
- $ rctl acl delete [REF] [-x] [-i] [-e <value>]
104
+ $ rctl acl delete [REF] [-i] [-e <value>]
99
105
 
100
106
  FLAGS
101
107
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
102
108
  -i, --insecure allow insecure connections to the routr server
103
- -x, --extended extended output format
104
109
 
105
110
  DESCRIPTION
106
111
  Deletes an Access Control List
@@ -110,13 +115,32 @@ EXAMPLES
110
115
  Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
111
116
  ```
112
117
 
118
+ ## `rctl acl describe [REF]`
119
+
120
+ shows details of an ACL
121
+
122
+ ```
123
+ USAGE
124
+ $ rctl acl describe [REF] [-i] [-e <value>]
125
+
126
+ ARGUMENTS
127
+ REF reference to the ACL
128
+
129
+ FLAGS
130
+ -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
131
+ -i, --insecure allow insecure connections to the routr server
132
+
133
+ DESCRIPTION
134
+ shows details of an ACL
135
+ ```
136
+
113
137
  ## `rctl acl get [REF]`
114
138
 
115
139
  Shows a list of paginated ACLs or a single ACL if a ref is provided
116
140
 
117
141
  ```
118
142
  USAGE
119
- $ rctl acl get [REF] [-x] [-i] [-e <value>] [-s <value>]
143
+ $ rctl acl get [REF] [-i] [-e <value>] [-s <value>] [-x]
120
144
 
121
145
  ARGUMENTS
122
146
  REF optional reference to an ACL
@@ -142,7 +166,7 @@ Updates an existing ACL
142
166
 
143
167
  ```
144
168
  USAGE
145
- $ rctl acl update [REF] [-x] [-i] [-e <value>]
169
+ $ rctl acl update [REF] [-i] [-e <value>]
146
170
 
147
171
  ARGUMENTS
148
172
  REF reference to an ACL
@@ -150,7 +174,6 @@ ARGUMENTS
150
174
  FLAGS
151
175
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
152
176
  -i, --insecure allow insecure connections to the routr server
153
- -x, --extended extended output format
154
177
 
155
178
  DESCRIPTION
156
179
  Updates an existing ACL
@@ -166,12 +189,11 @@ Creates a new Agent
166
189
 
167
190
  ```
168
191
  USAGE
169
- $ rctl agents create [-x] [-i] [-e <value>]
192
+ $ rctl agents create [-i] [-e <value>]
170
193
 
171
194
  FLAGS
172
195
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
173
196
  -i, --insecure allow insecure connections to the routr server
174
- -x, --extended extended output format
175
197
 
176
198
  DESCRIPTION
177
199
  Creates a new Agent
@@ -187,12 +209,11 @@ Deletes an Agent
187
209
 
188
210
  ```
189
211
  USAGE
190
- $ rctl agents delete [REF] [-x] [-i] [-e <value>]
212
+ $ rctl agents delete [REF] [-i] [-e <value>]
191
213
 
192
214
  FLAGS
193
215
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
194
216
  -i, --insecure allow insecure connections to the routr server
195
- -x, --extended extended output format
196
217
 
197
218
  DESCRIPTION
198
219
  Deletes an Agent
@@ -202,13 +223,32 @@ EXAMPLES
202
223
  Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
203
224
  ```
204
225
 
226
+ ## `rctl agents describe [REF]`
227
+
228
+ shows details of an Agent
229
+
230
+ ```
231
+ USAGE
232
+ $ rctl agents describe [REF] [-i] [-e <value>]
233
+
234
+ ARGUMENTS
235
+ REF reference to the Agent
236
+
237
+ FLAGS
238
+ -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
239
+ -i, --insecure allow insecure connections to the routr server
240
+
241
+ DESCRIPTION
242
+ shows details of an Agent
243
+ ```
244
+
205
245
  ## `rctl agents get [REF]`
206
246
 
207
247
  Shows a list of paginated Agents or a single Agent if ref is provided
208
248
 
209
249
  ```
210
250
  USAGE
211
- $ rctl agents get [REF] [-x] [-i] [-e <value>] [-s <value>]
251
+ $ rctl agents get [REF] [-i] [-e <value>] [-s <value>] [-x]
212
252
 
213
253
  ARGUMENTS
214
254
  REF Optional Agents reference
@@ -234,7 +274,7 @@ Updates an existing Agent
234
274
 
235
275
  ```
236
276
  USAGE
237
- $ rctl agents update [REF] [-x] [-i] [-e <value>]
277
+ $ rctl agents update [REF] [-i] [-e <value>]
238
278
 
239
279
  ARGUMENTS
240
280
  REF reference to an existing Agent
@@ -242,7 +282,6 @@ ARGUMENTS
242
282
  FLAGS
243
283
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
244
284
  -i, --insecure allow insecure connections to the routr server
245
- -x, --extended extended output format
246
285
 
247
286
  DESCRIPTION
248
287
  Updates an existing Agent
@@ -287,12 +326,11 @@ Creates a new set of Credentials
287
326
 
288
327
  ```
289
328
  USAGE
290
- $ rctl credentials create [-x] [-i] [-e <value>]
329
+ $ rctl credentials create [-i] [-e <value>]
291
330
 
292
331
  FLAGS
293
332
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
294
333
  -i, --insecure allow insecure connections to the routr server
295
- -x, --extended extended output format
296
334
 
297
335
  DESCRIPTION
298
336
  Creates a new set of Credentials
@@ -308,12 +346,11 @@ Deletes a set of Credentials
308
346
 
309
347
  ```
310
348
  USAGE
311
- $ rctl credentials delete [REF] [-x] [-i] [-e <value>]
349
+ $ rctl credentials delete [REF] [-i] [-e <value>]
312
350
 
313
351
  FLAGS
314
352
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
315
353
  -i, --insecure allow insecure connections to the routr server
316
- -x, --extended extended output format
317
354
 
318
355
  DESCRIPTION
319
356
  Deletes a set of Credentials
@@ -323,13 +360,32 @@ EXAMPLES
323
360
  Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
324
361
  ```
325
362
 
363
+ ## `rctl credentials describe [REF]`
364
+
365
+ shows details for a set of Credentials
366
+
367
+ ```
368
+ USAGE
369
+ $ rctl credentials describe [REF] [-i] [-e <value>]
370
+
371
+ ARGUMENTS
372
+ REF reference to the set of Credentials
373
+
374
+ FLAGS
375
+ -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
376
+ -i, --insecure allow insecure connections to the routr server
377
+
378
+ DESCRIPTION
379
+ shows details for a set of Credentials
380
+ ```
381
+
326
382
  ## `rctl credentials get [REF]`
327
383
 
328
384
  Shows a list of paginated Credentials or a single set if ref is provided
329
385
 
330
386
  ```
331
387
  USAGE
332
- $ rctl credentials get [REF] [-x] [-i] [-e <value>] [-s <value>]
388
+ $ rctl credentials get [REF] [-i] [-e <value>] [-s <value>] [-x]
333
389
 
334
390
  ARGUMENTS
335
391
  REF optional reference to a set of Credentials
@@ -355,7 +411,7 @@ Updates an existing set of Credentials
355
411
 
356
412
  ```
357
413
  USAGE
358
- $ rctl credentials update [REF] [-x] [-i] [-e <value>]
414
+ $ rctl credentials update [REF] [-i] [-e <value>]
359
415
 
360
416
  ARGUMENTS
361
417
  REF reference to an existing set of Credentials
@@ -363,7 +419,6 @@ ARGUMENTS
363
419
  FLAGS
364
420
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
365
421
  -i, --insecure allow insecure connections to the routr server
366
- -x, --extended extended output format
367
422
 
368
423
  DESCRIPTION
369
424
  Updates an existing set of Credentials
@@ -379,12 +434,11 @@ Creates a new set Domain
379
434
 
380
435
  ```
381
436
  USAGE
382
- $ rctl domains create [-x] [-i] [-e <value>]
437
+ $ rctl domains create [-i] [-e <value>]
383
438
 
384
439
  FLAGS
385
440
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
386
441
  -i, --insecure allow insecure connections to the routr server
387
- -x, --extended extended output format
388
442
 
389
443
  DESCRIPTION
390
444
  Creates a new set Domain
@@ -400,12 +454,11 @@ Deletes a Domain
400
454
 
401
455
  ```
402
456
  USAGE
403
- $ rctl domains delete [REF] [-x] [-i] [-e <value>]
457
+ $ rctl domains delete [REF] [-i] [-e <value>]
404
458
 
405
459
  FLAGS
406
460
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
407
461
  -i, --insecure allow insecure connections to the routr server
408
- -x, --extended extended output format
409
462
 
410
463
  DESCRIPTION
411
464
  Deletes a Domain
@@ -415,13 +468,32 @@ EXAMPLES
415
468
  Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
416
469
  ```
417
470
 
471
+ ## `rctl domains describe [REF]`
472
+
473
+ show details of a Domain
474
+
475
+ ```
476
+ USAGE
477
+ $ rctl domains describe [REF] [-i] [-e <value>]
478
+
479
+ ARGUMENTS
480
+ REF reference to the Domain
481
+
482
+ FLAGS
483
+ -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
484
+ -i, --insecure allow insecure connections to the routr server
485
+
486
+ DESCRIPTION
487
+ show details of a Domain
488
+ ```
489
+
418
490
  ## `rctl domains get [REF]`
419
491
 
420
492
  Shows a list of paginated Domains or a single Domain if ref is provided
421
493
 
422
494
  ```
423
495
  USAGE
424
- $ rctl domains get [REF] [-x] [-i] [-e <value>] [-s <value>]
496
+ $ rctl domains get [REF] [-i] [-e <value>] [-s <value>] [-x]
425
497
 
426
498
  ARGUMENTS
427
499
  REF optional reference to a Domain
@@ -447,7 +519,7 @@ Updates an existing Domain
447
519
 
448
520
  ```
449
521
  USAGE
450
- $ rctl domains update [REF] [-x] [-i] [-e <value>]
522
+ $ rctl domains update [REF] [-i] [-e <value>]
451
523
 
452
524
  ARGUMENTS
453
525
  REF reference to an existing Domain
@@ -455,7 +527,6 @@ ARGUMENTS
455
527
  FLAGS
456
528
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
457
529
  -i, --insecure allow insecure connections to the routr server
458
- -x, --extended extended output format
459
530
 
460
531
  DESCRIPTION
461
532
  Updates an existing Domain
@@ -471,12 +542,11 @@ Creates a new Number
471
542
 
472
543
  ```
473
544
  USAGE
474
- $ rctl numbers create [-x] [-i] [-e <value>]
545
+ $ rctl numbers create [-i] [-e <value>]
475
546
 
476
547
  FLAGS
477
548
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
478
549
  -i, --insecure allow insecure connections to the routr server
479
- -x, --extended extended output format
480
550
 
481
551
  DESCRIPTION
482
552
  Creates a new Number
@@ -492,12 +562,11 @@ Deletes a Number
492
562
 
493
563
  ```
494
564
  USAGE
495
- $ rctl numbers delete [REF] [-x] [-i] [-e <value>]
565
+ $ rctl numbers delete [REF] [-i] [-e <value>]
496
566
 
497
567
  FLAGS
498
568
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
499
569
  -i, --insecure allow insecure connections to the routr server
500
- -x, --extended extended output format
501
570
 
502
571
  DESCRIPTION
503
572
  Deletes a Number
@@ -507,13 +576,32 @@ EXAMPLES
507
576
  Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
508
577
  ```
509
578
 
579
+ ## `rctl numbers describe [REF]`
580
+
581
+ shows details for a Number
582
+
583
+ ```
584
+ USAGE
585
+ $ rctl numbers describe [REF] [-i] [-e <value>]
586
+
587
+ ARGUMENTS
588
+ REF reference to the Number
589
+
590
+ FLAGS
591
+ -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
592
+ -i, --insecure allow insecure connections to the routr server
593
+
594
+ DESCRIPTION
595
+ shows details for a Number
596
+ ```
597
+
510
598
  ## `rctl numbers get [REF]`
511
599
 
512
600
  Shows a list of paginated Numbers or a single Number if ref is provided
513
601
 
514
602
  ```
515
603
  USAGE
516
- $ rctl numbers get [REF] [-x] [-i] [-e <value>] [-s <value>]
604
+ $ rctl numbers get [REF] [-i] [-e <value>] [-s <value>] [-x]
517
605
 
518
606
  ARGUMENTS
519
607
  REF optional reference to a Number
@@ -539,7 +627,7 @@ Updates an existing set of Credentials
539
627
 
540
628
  ```
541
629
  USAGE
542
- $ rctl numbers update [REF] [-x] [-i] [-e <value>]
630
+ $ rctl numbers update [REF] [-i] [-e <value>]
543
631
 
544
632
  ARGUMENTS
545
633
  REF reference to an existing Number
@@ -547,7 +635,6 @@ ARGUMENTS
547
635
  FLAGS
548
636
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
549
637
  -i, --insecure allow insecure connections to the routr server
550
- -x, --extended extended output format
551
638
 
552
639
  DESCRIPTION
553
640
  Updates an existing set of Credentials
@@ -563,12 +650,11 @@ Creates a new Peer
563
650
 
564
651
  ```
565
652
  USAGE
566
- $ rctl peers create [-x] [-i] [-e <value>]
653
+ $ rctl peers create [-i] [-e <value>]
567
654
 
568
655
  FLAGS
569
656
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
570
657
  -i, --insecure allow insecure connections to the routr server
571
- -x, --extended extended output format
572
658
 
573
659
  DESCRIPTION
574
660
  Creates a new Peer
@@ -584,12 +670,11 @@ Deletes a Peer
584
670
 
585
671
  ```
586
672
  USAGE
587
- $ rctl peers delete [REF] [-x] [-i] [-e <value>]
673
+ $ rctl peers delete [REF] [-i] [-e <value>]
588
674
 
589
675
  FLAGS
590
676
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
591
677
  -i, --insecure allow insecure connections to the routr server
592
- -x, --extended extended output format
593
678
 
594
679
  DESCRIPTION
595
680
  Deletes a Peer
@@ -599,13 +684,32 @@ EXAMPLES
599
684
  Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
600
685
  ```
601
686
 
687
+ ## `rctl peers describe [REF]`
688
+
689
+ shows details for a Peer
690
+
691
+ ```
692
+ USAGE
693
+ $ rctl peers describe [REF] [-i] [-e <value>]
694
+
695
+ ARGUMENTS
696
+ REF reference to the Peer
697
+
698
+ FLAGS
699
+ -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
700
+ -i, --insecure allow insecure connections to the routr server
701
+
702
+ DESCRIPTION
703
+ shows details for a Peer
704
+ ```
705
+
602
706
  ## `rctl peers get [REF]`
603
707
 
604
708
  Shows a list of paginated Peers or a single Peer if ref is provided
605
709
 
606
710
  ```
607
711
  USAGE
608
- $ rctl peers get [REF] [-x] [-i] [-e <value>] [-s <value>]
712
+ $ rctl peers get [REF] [-i] [-e <value>] [-s <value>] [-x]
609
713
 
610
714
  ARGUMENTS
611
715
  REF optional reference to a Peer
@@ -631,7 +735,7 @@ Updates an existing Peer
631
735
 
632
736
  ```
633
737
  USAGE
634
- $ rctl peers update [REF] [-x] [-i] [-e <value>]
738
+ $ rctl peers update [REF] [-i] [-e <value>]
635
739
 
636
740
  ARGUMENTS
637
741
  REF reference to an existing Peer
@@ -639,7 +743,6 @@ ARGUMENTS
639
743
  FLAGS
640
744
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
641
745
  -i, --insecure allow insecure connections to the routr server
642
- -x, --extended extended output format
643
746
 
644
747
  DESCRIPTION
645
748
  Updates an existing Peer
@@ -667,7 +770,7 @@ EXAMPLES
667
770
  $ rctl plugins
668
771
  ```
669
772
 
670
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.2.3/src/commands/plugins/index.ts)_
773
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.2.4/src/commands/plugins/index.ts)_
671
774
 
672
775
  ## `rctl plugins:install PLUGIN...`
673
776
 
@@ -885,12 +988,11 @@ Creates a new Trunk
885
988
 
886
989
  ```
887
990
  USAGE
888
- $ rctl trunks create [-x] [-i] [-e <value>]
991
+ $ rctl trunks create [-i] [-e <value>]
889
992
 
890
993
  FLAGS
891
994
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
892
995
  -i, --insecure allow insecure connections to the routr server
893
- -x, --extended extended output format
894
996
 
895
997
  DESCRIPTION
896
998
  Creates a new Trunk
@@ -906,12 +1008,11 @@ Deletes a Trunk
906
1008
 
907
1009
  ```
908
1010
  USAGE
909
- $ rctl trunks delete [REF] [-x] [-i] [-e <value>]
1011
+ $ rctl trunks delete [REF] [-i] [-e <value>]
910
1012
 
911
1013
  FLAGS
912
1014
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
913
1015
  -i, --insecure allow insecure connections to the routr server
914
- -x, --extended extended output format
915
1016
 
916
1017
  DESCRIPTION
917
1018
  Deletes a Trunk
@@ -921,13 +1022,32 @@ EXAMPLES
921
1022
  Deleting item 80181ca6-d4aa-4575-9375-8f72b071111... Done
922
1023
  ```
923
1024
 
1025
+ ## `rctl trunks describe [REF]`
1026
+
1027
+ shows details for a Trunk
1028
+
1029
+ ```
1030
+ USAGE
1031
+ $ rctl trunks describe [REF] [-i] [-e <value>]
1032
+
1033
+ ARGUMENTS
1034
+ REF reference to the Trunk
1035
+
1036
+ FLAGS
1037
+ -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
1038
+ -i, --insecure allow insecure connections to the routr server
1039
+
1040
+ DESCRIPTION
1041
+ shows details for a Trunk
1042
+ ```
1043
+
924
1044
  ## `rctl trunks get [REF]`
925
1045
 
926
1046
  Shows a list of paginated Trunks or a single Trunk if ref is provided
927
1047
 
928
1048
  ```
929
1049
  USAGE
930
- $ rctl trunks get [REF] [-x] [-i] [-e <value>] [-s <value>]
1050
+ $ rctl trunks get [REF] [-i] [-e <value>] [-s <value>] [-x]
931
1051
 
932
1052
  ARGUMENTS
933
1053
  REF optional reference to a Trunk
@@ -953,7 +1073,7 @@ Updates an existing Trunk
953
1073
 
954
1074
  ```
955
1075
  USAGE
956
- $ rctl trunks update [REF] [-x] [-i] [-e <value>]
1076
+ $ rctl trunks update [REF] [-i] [-e <value>]
957
1077
 
958
1078
  ARGUMENTS
959
1079
  REF reference to an existing Trunk
@@ -961,7 +1081,6 @@ ARGUMENTS
961
1081
  FLAGS
962
1082
  -e, --endpoint=<value> [default: localhost:51907] endpoint to connect to the routr server
963
1083
  -i, --insecure allow insecure connections to the routr server
964
- -x, --extended extended output format
965
1084
 
966
1085
  DESCRIPTION
967
1086
  Updates an existing Trunk
package/dist/base.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Command } from "@oclif/core";
2
2
  export declare abstract class BaseCommand extends Command {
3
3
  static globalFlags: {
4
- extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
5
4
  insecure: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
6
5
  endpoint: import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
6
  };
package/dist/base.js CHANGED
@@ -25,10 +25,6 @@ class BaseCommand extends core_1.Command {
25
25
  }
26
26
  exports.BaseCommand = BaseCommand;
27
27
  BaseCommand.globalFlags = {
28
- extended: core_1.Flags.boolean({
29
- char: "x",
30
- description: "extended output format"
31
- }),
32
28
  insecure: core_1.Flags.boolean({
33
29
  char: "i",
34
30
  description: "allow insecure connections to the routr server",
@@ -0,0 +1,10 @@
1
+ import { BaseCommand } from "../../base";
2
+ export default class DescribeCommand extends BaseCommand {
3
+ static description: string;
4
+ static args: {
5
+ name: string;
6
+ required: boolean;
7
+ description: string;
8
+ }[];
9
+ run(): Promise<void>;
10
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ /*
7
+ * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com)
8
+ * http://github.com/fonoster
9
+ *
10
+ * This file is part of Routr.
11
+ *
12
+ * Licensed under the MIT License (the "License");
13
+ * you may not use this file except in compliance with
14
+ * the License. You may obtain a copy of the License at
15
+ *
16
+ * https://opensource.org/licenses/MIT
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software
19
+ * distributed under the License is distributed on an "AS IS" BASIS,
20
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
+ * See the License for the specific language governing permissions and
22
+ * limitations under the License.
23
+ */
24
+ /* eslint-disable require-jsdoc */
25
+ const base_1 = require("../../base");
26
+ const errors_1 = require("@oclif/core/lib/errors");
27
+ const prettyjson_1 = require("prettyjson");
28
+ const sdk_1 = __importDefault(require("@routr/sdk"));
29
+ const moment_1 = __importDefault(require("moment"));
30
+ class DescribeCommand extends base_1.BaseCommand {
31
+ async run() {
32
+ const { args, flags } = await this.parse(DescribeCommand);
33
+ const { endpoint, insecure } = flags;
34
+ const api = new sdk_1.default.ACL({ endpoint, insecure });
35
+ try {
36
+ const acl = await api.getACL(args.ref);
37
+ const jsonObj = {
38
+ Ref: acl.ref,
39
+ APIVersion: acl.apiVersion,
40
+ Name: acl.name,
41
+ Deny: acl.deny.join(","),
42
+ Allow: acl.allow.join(","),
43
+ Extended: acl.extended,
44
+ Created: (0, moment_1.default)(new Date(acl.createdAt * 1000)).toISOString(),
45
+ Updated: (0, moment_1.default)(new Date(acl.updatedAt * 1000)).toISOString()
46
+ };
47
+ this.log((0, prettyjson_1.render)(jsonObj, { noColor: true }));
48
+ }
49
+ catch (e) {
50
+ throw new errors_1.CLIError(e.message);
51
+ }
52
+ }
53
+ }
54
+ exports.default = DescribeCommand;
55
+ DescribeCommand.description = "shows details of an ACL";
56
+ DescribeCommand.args = [
57
+ {
58
+ name: "ref",
59
+ required: false,
60
+ description: "reference to the ACL"
61
+ }
62
+ ];
@@ -5,6 +5,7 @@ export default class GetCommand extends BaseCommand {
5
5
  static examples: string[];
6
6
  static flags: {
7
7
  size: import("@oclif/core/lib/interfaces").OptionFlag<number>;
8
+ extended: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
9
  };
9
10
  static args: {
10
11
  name: string;