@asyncapi/cli 1.9.3 → 1.11.0
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.
|
@@ -5,6 +5,7 @@ export default class Analytics extends Command {
|
|
|
5
5
|
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
6
6
|
disable: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
7
|
enable: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
status: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
8
9
|
};
|
|
9
10
|
run(): Promise<void>;
|
|
10
11
|
}
|
|
@@ -16,17 +16,25 @@ class Analytics extends base_1.default {
|
|
|
16
16
|
const analyticsConfigFileContent = JSON.parse(yield readFile((0, path_1.resolve)(analyticsConfigFile), { encoding: 'utf8' }));
|
|
17
17
|
if (flags.disable) {
|
|
18
18
|
analyticsConfigFileContent.analyticsEnabled = 'false';
|
|
19
|
-
this.log('
|
|
19
|
+
this.log('\nAnalytics disabled.\n');
|
|
20
20
|
}
|
|
21
21
|
else if (flags.enable) {
|
|
22
22
|
analyticsConfigFileContent.analyticsEnabled = 'true';
|
|
23
|
-
this.log('
|
|
23
|
+
this.log('\nAnalytics enabled.\n');
|
|
24
24
|
}
|
|
25
|
-
else {
|
|
26
|
-
this.log('\nPlease append the "--disable" flag to the command in case you prefer to disable analytics, or use the "--enable" flag if you want to enable analytics back again.\n');
|
|
25
|
+
else if (!flags.status) {
|
|
26
|
+
this.log('\nPlease append the "--disable" flag to the command in case you prefer to disable analytics, or use the "--enable" flag if you want to enable analytics back again. In case you do not know the analytics current status, then you can append the "--status" flag to be aware of it.\n');
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
yield writeFile(analyticsConfigFile, JSON.stringify(analyticsConfigFileContent), { encoding: 'utf8' });
|
|
30
|
+
if (flags.status) {
|
|
31
|
+
if (analyticsConfigFileContent.analyticsEnabled === 'true') {
|
|
32
|
+
this.log('\nAnalytics are enabled.\n');
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.log('\nAnalytics are disabled. Please append the "--enable" flag to the command in case you prefer to enable analytics.\n');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
catch (e) {
|
|
32
40
|
switch (e.code) {
|
|
@@ -49,4 +57,5 @@ Analytics.flags = {
|
|
|
49
57
|
help: core_1.Flags.help({ char: 'h' }),
|
|
50
58
|
disable: core_1.Flags.boolean({ char: 'd', description: 'disable analytics', default: false }),
|
|
51
59
|
enable: core_1.Flags.boolean({ char: 'e', description: 'enable analytics', default: false }),
|
|
60
|
+
status: core_1.Flags.boolean({ char: 's', description: 'show current status of analytics' }),
|
|
52
61
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -427,6 +427,13 @@
|
|
|
427
427
|
"name": "enable",
|
|
428
428
|
"allowNo": false,
|
|
429
429
|
"type": "boolean"
|
|
430
|
+
},
|
|
431
|
+
"status": {
|
|
432
|
+
"char": "s",
|
|
433
|
+
"description": "show current status of analytics",
|
|
434
|
+
"name": "status",
|
|
435
|
+
"allowNo": false,
|
|
436
|
+
"type": "boolean"
|
|
430
437
|
}
|
|
431
438
|
},
|
|
432
439
|
"hasDynamicHelp": false,
|
|
@@ -492,6 +499,203 @@
|
|
|
492
499
|
"versions.js"
|
|
493
500
|
]
|
|
494
501
|
},
|
|
502
|
+
"new:file": {
|
|
503
|
+
"aliases": [],
|
|
504
|
+
"args": {},
|
|
505
|
+
"description": "Creates a new asyncapi file",
|
|
506
|
+
"examples": [
|
|
507
|
+
"asyncapi new\t - start creation of a file in interactive mode",
|
|
508
|
+
"asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty\t - create a new file with a specific name, using one of the examples and without interactive mode"
|
|
509
|
+
],
|
|
510
|
+
"flags": {
|
|
511
|
+
"help": {
|
|
512
|
+
"char": "h",
|
|
513
|
+
"description": "Show CLI help.",
|
|
514
|
+
"name": "help",
|
|
515
|
+
"allowNo": false,
|
|
516
|
+
"type": "boolean"
|
|
517
|
+
},
|
|
518
|
+
"file-name": {
|
|
519
|
+
"char": "n",
|
|
520
|
+
"description": "name of the file",
|
|
521
|
+
"name": "file-name",
|
|
522
|
+
"hasDynamicHelp": false,
|
|
523
|
+
"multiple": false,
|
|
524
|
+
"type": "option"
|
|
525
|
+
},
|
|
526
|
+
"example": {
|
|
527
|
+
"char": "e",
|
|
528
|
+
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
529
|
+
"name": "example",
|
|
530
|
+
"hasDynamicHelp": false,
|
|
531
|
+
"multiple": false,
|
|
532
|
+
"type": "option"
|
|
533
|
+
},
|
|
534
|
+
"studio": {
|
|
535
|
+
"char": "s",
|
|
536
|
+
"description": "open in Studio",
|
|
537
|
+
"name": "studio",
|
|
538
|
+
"allowNo": false,
|
|
539
|
+
"type": "boolean"
|
|
540
|
+
},
|
|
541
|
+
"port": {
|
|
542
|
+
"char": "p",
|
|
543
|
+
"description": "port in which to start Studio",
|
|
544
|
+
"name": "port",
|
|
545
|
+
"hasDynamicHelp": false,
|
|
546
|
+
"multiple": false,
|
|
547
|
+
"type": "option"
|
|
548
|
+
},
|
|
549
|
+
"no-tty": {
|
|
550
|
+
"description": "do not use an interactive terminal",
|
|
551
|
+
"name": "no-tty",
|
|
552
|
+
"allowNo": false,
|
|
553
|
+
"type": "boolean"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
"hasDynamicHelp": false,
|
|
557
|
+
"hiddenAliases": [],
|
|
558
|
+
"id": "new:file",
|
|
559
|
+
"pluginAlias": "@asyncapi/cli",
|
|
560
|
+
"pluginName": "@asyncapi/cli",
|
|
561
|
+
"pluginType": "core",
|
|
562
|
+
"strict": true,
|
|
563
|
+
"isESM": false,
|
|
564
|
+
"relativePath": [
|
|
565
|
+
"lib",
|
|
566
|
+
"commands",
|
|
567
|
+
"new",
|
|
568
|
+
"file.js"
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
"new:glee": {
|
|
572
|
+
"aliases": [],
|
|
573
|
+
"args": {},
|
|
574
|
+
"description": "Creates a new Glee project",
|
|
575
|
+
"flags": {
|
|
576
|
+
"help": {
|
|
577
|
+
"char": "h",
|
|
578
|
+
"description": "Show CLI help.",
|
|
579
|
+
"name": "help",
|
|
580
|
+
"allowNo": false,
|
|
581
|
+
"type": "boolean"
|
|
582
|
+
},
|
|
583
|
+
"name": {
|
|
584
|
+
"char": "n",
|
|
585
|
+
"description": "Name of the Project",
|
|
586
|
+
"name": "name",
|
|
587
|
+
"default": "project",
|
|
588
|
+
"hasDynamicHelp": false,
|
|
589
|
+
"multiple": false,
|
|
590
|
+
"type": "option"
|
|
591
|
+
},
|
|
592
|
+
"template": {
|
|
593
|
+
"char": "t",
|
|
594
|
+
"description": "Name of the Template",
|
|
595
|
+
"name": "template",
|
|
596
|
+
"default": "default",
|
|
597
|
+
"hasDynamicHelp": false,
|
|
598
|
+
"multiple": false,
|
|
599
|
+
"type": "option"
|
|
600
|
+
},
|
|
601
|
+
"file": {
|
|
602
|
+
"char": "f",
|
|
603
|
+
"description": "The path to the AsyncAPI file for generating a Glee project.",
|
|
604
|
+
"name": "file",
|
|
605
|
+
"hasDynamicHelp": false,
|
|
606
|
+
"multiple": false,
|
|
607
|
+
"type": "option"
|
|
608
|
+
},
|
|
609
|
+
"force-write": {
|
|
610
|
+
"description": "Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false)",
|
|
611
|
+
"name": "force-write",
|
|
612
|
+
"allowNo": false,
|
|
613
|
+
"type": "boolean"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"hasDynamicHelp": false,
|
|
617
|
+
"hiddenAliases": [],
|
|
618
|
+
"id": "new:glee",
|
|
619
|
+
"pluginAlias": "@asyncapi/cli",
|
|
620
|
+
"pluginName": "@asyncapi/cli",
|
|
621
|
+
"pluginType": "core",
|
|
622
|
+
"strict": true,
|
|
623
|
+
"isESM": false,
|
|
624
|
+
"relativePath": [
|
|
625
|
+
"lib",
|
|
626
|
+
"commands",
|
|
627
|
+
"new",
|
|
628
|
+
"glee.js"
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
"new": {
|
|
632
|
+
"aliases": [],
|
|
633
|
+
"args": {},
|
|
634
|
+
"description": "Creates a new asyncapi file",
|
|
635
|
+
"examples": [
|
|
636
|
+
"asyncapi new\t - start creation of a file in interactive mode",
|
|
637
|
+
"asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty\t - create a new file with a specific name, using one of the examples and without interactive mode"
|
|
638
|
+
],
|
|
639
|
+
"flags": {
|
|
640
|
+
"help": {
|
|
641
|
+
"char": "h",
|
|
642
|
+
"description": "Show CLI help.",
|
|
643
|
+
"name": "help",
|
|
644
|
+
"allowNo": false,
|
|
645
|
+
"type": "boolean"
|
|
646
|
+
},
|
|
647
|
+
"file-name": {
|
|
648
|
+
"char": "n",
|
|
649
|
+
"description": "name of the file",
|
|
650
|
+
"name": "file-name",
|
|
651
|
+
"hasDynamicHelp": false,
|
|
652
|
+
"multiple": false,
|
|
653
|
+
"type": "option"
|
|
654
|
+
},
|
|
655
|
+
"example": {
|
|
656
|
+
"char": "e",
|
|
657
|
+
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
658
|
+
"name": "example",
|
|
659
|
+
"hasDynamicHelp": false,
|
|
660
|
+
"multiple": false,
|
|
661
|
+
"type": "option"
|
|
662
|
+
},
|
|
663
|
+
"studio": {
|
|
664
|
+
"char": "s",
|
|
665
|
+
"description": "open in Studio",
|
|
666
|
+
"name": "studio",
|
|
667
|
+
"allowNo": false,
|
|
668
|
+
"type": "boolean"
|
|
669
|
+
},
|
|
670
|
+
"port": {
|
|
671
|
+
"char": "p",
|
|
672
|
+
"description": "port in which to start Studio",
|
|
673
|
+
"name": "port",
|
|
674
|
+
"hasDynamicHelp": false,
|
|
675
|
+
"multiple": false,
|
|
676
|
+
"type": "option"
|
|
677
|
+
},
|
|
678
|
+
"no-tty": {
|
|
679
|
+
"description": "do not use an interactive terminal",
|
|
680
|
+
"name": "no-tty",
|
|
681
|
+
"allowNo": false,
|
|
682
|
+
"type": "boolean"
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
"hasDynamicHelp": false,
|
|
686
|
+
"hiddenAliases": [],
|
|
687
|
+
"id": "new",
|
|
688
|
+
"pluginAlias": "@asyncapi/cli",
|
|
689
|
+
"pluginName": "@asyncapi/cli",
|
|
690
|
+
"pluginType": "core",
|
|
691
|
+
"isESM": false,
|
|
692
|
+
"relativePath": [
|
|
693
|
+
"lib",
|
|
694
|
+
"commands",
|
|
695
|
+
"new",
|
|
696
|
+
"index.js"
|
|
697
|
+
]
|
|
698
|
+
},
|
|
495
699
|
"generate:fromTemplate": {
|
|
496
700
|
"aliases": [],
|
|
497
701
|
"args": {
|
|
@@ -894,203 +1098,6 @@
|
|
|
894
1098
|
"models.js"
|
|
895
1099
|
]
|
|
896
1100
|
},
|
|
897
|
-
"new:file": {
|
|
898
|
-
"aliases": [],
|
|
899
|
-
"args": {},
|
|
900
|
-
"description": "Creates a new asyncapi file",
|
|
901
|
-
"examples": [
|
|
902
|
-
"asyncapi new\t - start creation of a file in interactive mode",
|
|
903
|
-
"asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty\t - create a new file with a specific name, using one of the examples and without interactive mode"
|
|
904
|
-
],
|
|
905
|
-
"flags": {
|
|
906
|
-
"help": {
|
|
907
|
-
"char": "h",
|
|
908
|
-
"description": "Show CLI help.",
|
|
909
|
-
"name": "help",
|
|
910
|
-
"allowNo": false,
|
|
911
|
-
"type": "boolean"
|
|
912
|
-
},
|
|
913
|
-
"file-name": {
|
|
914
|
-
"char": "n",
|
|
915
|
-
"description": "name of the file",
|
|
916
|
-
"name": "file-name",
|
|
917
|
-
"hasDynamicHelp": false,
|
|
918
|
-
"multiple": false,
|
|
919
|
-
"type": "option"
|
|
920
|
-
},
|
|
921
|
-
"example": {
|
|
922
|
-
"char": "e",
|
|
923
|
-
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
924
|
-
"name": "example",
|
|
925
|
-
"hasDynamicHelp": false,
|
|
926
|
-
"multiple": false,
|
|
927
|
-
"type": "option"
|
|
928
|
-
},
|
|
929
|
-
"studio": {
|
|
930
|
-
"char": "s",
|
|
931
|
-
"description": "open in Studio",
|
|
932
|
-
"name": "studio",
|
|
933
|
-
"allowNo": false,
|
|
934
|
-
"type": "boolean"
|
|
935
|
-
},
|
|
936
|
-
"port": {
|
|
937
|
-
"char": "p",
|
|
938
|
-
"description": "port in which to start Studio",
|
|
939
|
-
"name": "port",
|
|
940
|
-
"hasDynamicHelp": false,
|
|
941
|
-
"multiple": false,
|
|
942
|
-
"type": "option"
|
|
943
|
-
},
|
|
944
|
-
"no-tty": {
|
|
945
|
-
"description": "do not use an interactive terminal",
|
|
946
|
-
"name": "no-tty",
|
|
947
|
-
"allowNo": false,
|
|
948
|
-
"type": "boolean"
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
"hasDynamicHelp": false,
|
|
952
|
-
"hiddenAliases": [],
|
|
953
|
-
"id": "new:file",
|
|
954
|
-
"pluginAlias": "@asyncapi/cli",
|
|
955
|
-
"pluginName": "@asyncapi/cli",
|
|
956
|
-
"pluginType": "core",
|
|
957
|
-
"strict": true,
|
|
958
|
-
"isESM": false,
|
|
959
|
-
"relativePath": [
|
|
960
|
-
"lib",
|
|
961
|
-
"commands",
|
|
962
|
-
"new",
|
|
963
|
-
"file.js"
|
|
964
|
-
]
|
|
965
|
-
},
|
|
966
|
-
"new:glee": {
|
|
967
|
-
"aliases": [],
|
|
968
|
-
"args": {},
|
|
969
|
-
"description": "Creates a new Glee project",
|
|
970
|
-
"flags": {
|
|
971
|
-
"help": {
|
|
972
|
-
"char": "h",
|
|
973
|
-
"description": "Show CLI help.",
|
|
974
|
-
"name": "help",
|
|
975
|
-
"allowNo": false,
|
|
976
|
-
"type": "boolean"
|
|
977
|
-
},
|
|
978
|
-
"name": {
|
|
979
|
-
"char": "n",
|
|
980
|
-
"description": "Name of the Project",
|
|
981
|
-
"name": "name",
|
|
982
|
-
"default": "project",
|
|
983
|
-
"hasDynamicHelp": false,
|
|
984
|
-
"multiple": false,
|
|
985
|
-
"type": "option"
|
|
986
|
-
},
|
|
987
|
-
"template": {
|
|
988
|
-
"char": "t",
|
|
989
|
-
"description": "Name of the Template",
|
|
990
|
-
"name": "template",
|
|
991
|
-
"default": "default",
|
|
992
|
-
"hasDynamicHelp": false,
|
|
993
|
-
"multiple": false,
|
|
994
|
-
"type": "option"
|
|
995
|
-
},
|
|
996
|
-
"file": {
|
|
997
|
-
"char": "f",
|
|
998
|
-
"description": "The path to the AsyncAPI file for generating a Glee project.",
|
|
999
|
-
"name": "file",
|
|
1000
|
-
"hasDynamicHelp": false,
|
|
1001
|
-
"multiple": false,
|
|
1002
|
-
"type": "option"
|
|
1003
|
-
},
|
|
1004
|
-
"force-write": {
|
|
1005
|
-
"description": "Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false)",
|
|
1006
|
-
"name": "force-write",
|
|
1007
|
-
"allowNo": false,
|
|
1008
|
-
"type": "boolean"
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
"hasDynamicHelp": false,
|
|
1012
|
-
"hiddenAliases": [],
|
|
1013
|
-
"id": "new:glee",
|
|
1014
|
-
"pluginAlias": "@asyncapi/cli",
|
|
1015
|
-
"pluginName": "@asyncapi/cli",
|
|
1016
|
-
"pluginType": "core",
|
|
1017
|
-
"strict": true,
|
|
1018
|
-
"isESM": false,
|
|
1019
|
-
"relativePath": [
|
|
1020
|
-
"lib",
|
|
1021
|
-
"commands",
|
|
1022
|
-
"new",
|
|
1023
|
-
"glee.js"
|
|
1024
|
-
]
|
|
1025
|
-
},
|
|
1026
|
-
"new": {
|
|
1027
|
-
"aliases": [],
|
|
1028
|
-
"args": {},
|
|
1029
|
-
"description": "Creates a new asyncapi file",
|
|
1030
|
-
"examples": [
|
|
1031
|
-
"asyncapi new\t - start creation of a file in interactive mode",
|
|
1032
|
-
"asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty\t - create a new file with a specific name, using one of the examples and without interactive mode"
|
|
1033
|
-
],
|
|
1034
|
-
"flags": {
|
|
1035
|
-
"help": {
|
|
1036
|
-
"char": "h",
|
|
1037
|
-
"description": "Show CLI help.",
|
|
1038
|
-
"name": "help",
|
|
1039
|
-
"allowNo": false,
|
|
1040
|
-
"type": "boolean"
|
|
1041
|
-
},
|
|
1042
|
-
"file-name": {
|
|
1043
|
-
"char": "n",
|
|
1044
|
-
"description": "name of the file",
|
|
1045
|
-
"name": "file-name",
|
|
1046
|
-
"hasDynamicHelp": false,
|
|
1047
|
-
"multiple": false,
|
|
1048
|
-
"type": "option"
|
|
1049
|
-
},
|
|
1050
|
-
"example": {
|
|
1051
|
-
"char": "e",
|
|
1052
|
-
"description": "name of the example to use. Available examples are:\n\t - simple-asyncapi.yml\n\t - anyof-asyncapi.yml\n\t - application-headers-asyncapi.yml\n\t - correlation-id-asyncapi.yml\n\t - websocket-gemini-asyncapi.yml\n\t - gitter-streaming-asyncapi.yml\n\t - kraken-websocket-request-reply-message-filter-in-reply-asyncapi.yml\n\t - kraken-websocket-request-reply-multiple-channels-asyncapi.yml\n\t - mercure-asyncapi.yml\n\t - not-asyncapi.yml\n\t - operation-security-asyncapi.yml\n\t - oneof-asyncapi.yml\n\t - rpc-client-asyncapi.yml\n\t - rpc-server-asyncapi.yml\n\t - slack-rtm-asyncapi.yml\n\t - tutorial.yml\n\t - streetlights-kafka-asyncapi.yml\n\t - streetlights-operation-security-asyncapi.yml\n\t - streetlights-mqtt-asyncapi.yml",
|
|
1053
|
-
"name": "example",
|
|
1054
|
-
"hasDynamicHelp": false,
|
|
1055
|
-
"multiple": false,
|
|
1056
|
-
"type": "option"
|
|
1057
|
-
},
|
|
1058
|
-
"studio": {
|
|
1059
|
-
"char": "s",
|
|
1060
|
-
"description": "open in Studio",
|
|
1061
|
-
"name": "studio",
|
|
1062
|
-
"allowNo": false,
|
|
1063
|
-
"type": "boolean"
|
|
1064
|
-
},
|
|
1065
|
-
"port": {
|
|
1066
|
-
"char": "p",
|
|
1067
|
-
"description": "port in which to start Studio",
|
|
1068
|
-
"name": "port",
|
|
1069
|
-
"hasDynamicHelp": false,
|
|
1070
|
-
"multiple": false,
|
|
1071
|
-
"type": "option"
|
|
1072
|
-
},
|
|
1073
|
-
"no-tty": {
|
|
1074
|
-
"description": "do not use an interactive terminal",
|
|
1075
|
-
"name": "no-tty",
|
|
1076
|
-
"allowNo": false,
|
|
1077
|
-
"type": "boolean"
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
"hasDynamicHelp": false,
|
|
1081
|
-
"hiddenAliases": [],
|
|
1082
|
-
"id": "new",
|
|
1083
|
-
"pluginAlias": "@asyncapi/cli",
|
|
1084
|
-
"pluginName": "@asyncapi/cli",
|
|
1085
|
-
"pluginType": "core",
|
|
1086
|
-
"isESM": false,
|
|
1087
|
-
"relativePath": [
|
|
1088
|
-
"lib",
|
|
1089
|
-
"commands",
|
|
1090
|
-
"new",
|
|
1091
|
-
"index.js"
|
|
1092
|
-
]
|
|
1093
|
-
},
|
|
1094
1101
|
"start": {
|
|
1095
1102
|
"aliases": [],
|
|
1096
1103
|
"args": {},
|
|
@@ -1429,5 +1436,5 @@
|
|
|
1429
1436
|
]
|
|
1430
1437
|
}
|
|
1431
1438
|
},
|
|
1432
|
-
"version": "1.
|
|
1439
|
+
"version": "1.11.0"
|
|
1433
1440
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyncapi/cli",
|
|
3
3
|
"description": "All in one CLI for all AsyncAPI tools",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.11.0",
|
|
5
5
|
"author": "@asyncapi",
|
|
6
6
|
"bin": {
|
|
7
7
|
"asyncapi": "./bin/run_bin"
|
|
@@ -111,7 +111,6 @@
|
|
|
111
111
|
"oclif": {
|
|
112
112
|
"commands": "./lib/commands",
|
|
113
113
|
"bin": "asyncapi",
|
|
114
|
-
"plugins": [],
|
|
115
114
|
"hooks": {
|
|
116
115
|
"command_not_found": [
|
|
117
116
|
"./lib/hooks/command_not_found/myhook"
|
|
@@ -129,6 +128,14 @@
|
|
|
129
128
|
"generate": {
|
|
130
129
|
"description": "Generate models and template"
|
|
131
130
|
}
|
|
131
|
+
},
|
|
132
|
+
"plugins": [
|
|
133
|
+
"@oclif/plugin-warn-if-update-available"
|
|
134
|
+
],
|
|
135
|
+
"warn-if-update-available": {
|
|
136
|
+
"frequency": 24,
|
|
137
|
+
"message": "\n<%= chalk.yellow('╭────────────────────────────────────────────────────────────────╮') %>\n<%= chalk.yellow('│ │') %>\n<%= chalk.yellow('│') %> Update available! <%= chalk.red(config.version) %> → <%= chalk.greenBright(latest) %>. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.magentaBright('Changelog:') %> https://github.com/asyncapi/cli/releases/tag/v<%= latest %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> Run \"<%= chalk.magentaBright('npm install -g @asyncapi/cli@latest') %>\" to update. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('╰────────────────────────────────────────────────────────────────╯') %>",
|
|
138
|
+
"frequencyUnit": "hours"
|
|
132
139
|
}
|
|
133
140
|
},
|
|
134
141
|
"publishConfig": {
|