forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdart.ts
1034 lines (1019 loc) · 31.7 KB
/
dart.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const dartEntryPoint: Fig.Arg = {
name: "dart-entry-point",
description: "The Dart file containing the main function",
};
const portOrBindAddress: Fig.Arg = {
name: "port-or-address",
description: "Port to observe",
};
const offline: Fig.Option = {
name: "--offline",
description: "Use cached packages instead of accessing the network",
exclusiveOn: ["--no-offline"],
};
const noOffline: Fig.Option = {
name: "--no-offline",
description: "Do not use cached packages instead of accessing the network",
exclusiveOn: ["--offline"],
};
const dryRun: Fig.Option = {
name: ["-n", "--dry-run"],
description: "Report what dependencies would change but don't change any",
};
const precompile: Fig.Option = {
name: "--precompile",
description: "Precompile executables in immediate dependencies",
exclusiveOn: ["--no-precompile"],
};
const noPrecompile: Fig.Option = {
name: "--no-precompile",
description: "Do not precompile executables in immediate dependencies",
exclusiveOn: ["--precompile"],
};
const enableAsserts: Fig.Option = {
name: "--enable-asserts",
description: "Enable assert statements",
exclusiveOn: ["--no-enable-asserts"],
};
const noEnableAsserts: Fig.Option = {
name: "--no-enable-asserts",
description: "Do not enable assert statements",
exclusiveOn: ["--enable-asserts"],
};
const define: Fig.Subcommand = {
name: ["-D", "--define"],
description:
"Define an environment declaration. To specify multiple declarations, use multiple options or use commas to separate key-value pairs. For example: dart compile aot-snapshot -D a=1,b=2 main.dart",
args: {
name: "key-value-pairs",
description: "Key-value pairs to define in Dart script",
isVariadic: true,
},
};
const verbosity: Fig.Option = {
name: "--verbosity",
description: "Sets the verbosity level of the compilation",
args: {
name: "verbosity-level",
suggestions: [
{ name: "all", description: "Show all messages" },
{ name: "error", description: "Show only error messages" },
{
name: "info",
description: "Show error, warning, and info messages",
},
{
name: "warning",
description: "Show only error and warning messages",
},
],
},
};
const globalOptions: Fig.Option[] = [
{
name: ["-h", "--help"],
description: "Print this usage information",
},
];
const compileOptions: Fig.Subcommand[] = [
{
name: ["-o", "--output"],
description: "Write the output to <file-name>",
args: { name: "dart-entry-point", template: "filepaths" },
},
verbosity,
];
const aotOptions: Fig.Subcommand[] = [
define,
{
name: "--enable-asserts",
description: "Enable assert statements",
},
{
name: ["-p", "--packages"],
description:
"Get package locations from the specified file instead of .packages. <path> can be relative or absolute",
args: {
name: "args-path",
description: "The path to draw packages from",
template: "filepaths",
},
},
{
name: ["--no-sound-null-safety", "--sound-null-safety"],
description: "Respect the nullability of types at runtime",
},
{
name: ["-S", "--save-debugging-info"],
description:
"Remove debugging information from the output and save it separately to the specified file.. <path> can be relative or absolute",
args: {
name: "debug-info-path",
description: "The path to write debugging info to",
template: "filepaths",
},
},
];
const completionSpec: Fig.Spec = {
name: "dart",
description: "A command-line utility for Dart development",
options: [
...globalOptions,
{
name: ["-v", "--verbose"],
description: "Print verbose output",
},
{
name: "--version",
description: "Current Dart version",
},
{
name: "--enable-analytics",
description: "Enables analytics",
},
{
name: "--disable-analytics",
description: "Disables analytics",
},
],
subcommands: [
{
name: "analyze",
description: "Analyze Dart code in a directory",
options: [
...globalOptions,
{
name: "--fatal-infos",
description: "Treat info level issues as fatal",
},
{
name: "--fatal-warnings",
description: "Treat warning level issues as fatal (defaults to on)",
exclusiveOn: ["--no-fatal-warnings"],
},
{
name: "--no-fatal-warnings",
description:
"Do not treat warning level issues as fatal (defaults to on)",
exclusiveOn: ["--fatal-warnings"],
},
],
args: {
name: "directory",
description: "Dart project directoy to analyze",
template: "folders",
},
},
{
name: "compile",
description: "Compile Dart to various formats",
options: [...globalOptions],
subcommands: [
{
name: "aot-snapshot",
description: "Compile Dart to an AOT snapshot",
args: dartEntryPoint,
options: [...globalOptions, ...compileOptions, ...aotOptions],
},
{
name: "exe",
description: "Compile Dart to a self-contained executable",
args: dartEntryPoint,
options: [...globalOptions, ...compileOptions, ...aotOptions],
},
{
name: "jit-snapshot",
description: "Compile Dart to a JIT snapshot",
args: dartEntryPoint,
options: [...globalOptions, ...compileOptions],
},
{
name: "js",
description: "Compile Dart to JavaScript",
args: dartEntryPoint,
options: [
...globalOptions,
...compileOptions,
{
name: ["-m", "--minified"],
description: "Generate minified output",
},
define,
],
},
{
name: "kernel",
description: "Compile Dart to a kernel snapshot",
args: dartEntryPoint,
options: [...globalOptions, ...compileOptions],
},
],
},
{
name: "create",
description: "Create a new Dart project",
options: [
...globalOptions,
{
name: ["-t", "--template"],
description: "The project template to use",
args: {
name: "template-type",
default: "console-simple",
suggestions: [
{
name: "console-simple",
description: "A simple command-line application",
},
{
name: "console-full",
description: "A command-line application sample",
},
{
name: "package-simple",
description:
"A starting point for Dart libraries or applications",
},
{
name: "server-simple",
description: "A web server built using package:shelf",
},
{
name: "web-simple",
description: "A web app that uses only core Dart libraries",
},
],
},
},
{
name: "--pub",
description:
"Run 'pub get' after the project has been created. Default to on",
exclusiveOn: ["--no-pub"],
},
{
name: "--no-pub",
description:
"Do not run 'pub get' after the project has been created. Default to on",
exclusiveOn: ["--pub"],
},
{
name: "--foce",
description:
"Force project generation, even if the target directory already exists",
},
],
},
{
name: "fix",
description: "Apply automated fixes to Dart source code",
options: [
...globalOptions,
{
name: ["-n", "--dry-run"],
description: "Preview the proposed changes but make no changes",
},
{
name: "--apply",
description: "Apply the proposed changes",
},
],
},
{
name: "format",
description: "Idiomatically format Dart source code",
options: [
...globalOptions,
{
name: ["-v", "--verbose"],
description: "Show all options and flags with --help",
},
{
name: ["-o", "--output"],
description: "Set where to write formatted output",
args: [
{
name: "json",
description: "Print code and selection as JSON",
},
{
name: "none",
description: "Discard output",
},
{
name: "show",
description: "Print code to terminal",
},
{
name: "write",
description: "Overwrite formatted files on disk",
},
{
name: "--show",
description: "Set which filenames to print",
suggestions: [
{
name: "all",
description: "All visited files and directories",
},
{
name: "changed",
description:
"Nly the names of files whose formatting is changed",
},
{
name: "none",
description: "No file names or directories",
},
],
},
{
name: "--summary",
description: "Show the specified summary after formatting",
suggestions: [
{
name: "line",
description: "Single-line summary",
},
{
name: "none",
description: "No summary",
},
{
name: "profile",
description: "How long it took to format each file",
},
],
},
],
},
{
name: "--set-exit-if-changed",
description:
"Return exist code 1 if there are any formatting changes",
},
{
name: "--fix",
description: "Apply all style fixes",
},
{
name: "--fix-doc-comments",
description: "Use triple slash for documentation comments",
},
{
name: "--fix-function-typedefs",
description: "Use new syntax for function type typedefs",
},
{
name: "--fix-named-default-separator",
description:
"Use '=' as the separator before named parameter default values",
},
{
name: "--fix-optional-const",
description: "Remove 'const' keyword inside constant context",
},
{
name: "--fix-optional-new",
description: "Remove 'new' keyword",
},
{
name: "--fix-single-cascade-statements",
description:
"Remove unnecessary single cascades from expression statements",
},
{
name: ["-l", "--line-length"],
description: "Wrap lines longer than this. Defaults to 80",
args: {
name: "line-length",
description: "Line length to wrap",
suggestions: ["80", "120"],
},
},
{
name: ["-i", "--indent"],
description: "Add this many spaces of leading indentation",
args: { name: "number-of-spaces" },
},
{
name: "--follow-links",
description:
"Follow links to files and directories. If unset, links will be ignored",
},
{
name: "--version",
description: "Show dart_style version",
},
{
name: "--selection",
description:
"Track selection (given as 'start:length') through formatting",
},
{
name: "--stdin-name",
description:
"Use this path in error messages when input is read from stdin. (defaults to 'stdin')",
args: { name: "name" },
},
],
args: {
name: "files-or-directory",
description: "The files or directories to format",
template: ["filepaths", "folders"],
},
},
{
name: "migrate",
description: "Perform null safety migration on a project",
options: [
...globalOptions,
{
name: ["-v", "--verbose"],
description: "Show additional command output",
},
{
name: "--apply-changes",
description:
"Apply the proposed null safety changes to the files on disk",
},
{
name: "--ignore-errors",
description:
"Attempt to perform null safety analysis even if the project has analysis errors",
},
{
name: "--skip-import-check",
description:
"Go ahead with migration even if some imported files have not yet been migrated",
},
{
name: "--web-preview",
description:
"Show and interactive preview of the proposed null safety changes in a browser window. (defaults to on)",
exclusiveOn: ["--no-web-preview"],
},
{
name: "--no-web-preview",
description:
"Do not show and interactive preview of the proposed null safety changes in a browser window. (defaults to off)",
exclusiveOn: ["--web-preview"],
},
{
name: "--preview-hostname",
description:
"Run the preview server on the specified hostname. If not specified, 'localhost' is used. Use 'any' to specify IPv6.any or IPv4.any. (defaults to the 'localhost')",
args: {
name: "host",
},
},
{
name: "--preview-port",
description:
"Run the preview server on the specified port. If not specified, dynamically allocate a port",
args: {
name: "port",
},
},
{
name: "--summary",
description: "Output a machine-readable summary of migration changes",
args: { name: "path", template: "filepaths" },
},
{
name: "--ignore-exceptions",
description:
"Attempt to perform null safety analysis even if exceptions occur",
},
{
name: "--sdk-path",
description: "The path to the Dart SDK",
args: { name: "sdk-path" },
},
],
},
{
name: "pub",
description: "Work with packages",
options: [
...globalOptions,
{
name: "--trace",
description: "Print debugging information when an error occurs",
exclusiveOn: ["--no-trace"],
},
{
name: "--no-trace",
description:
"Do not print debugging information when an error occurs",
exclusiveOn: ["--trace"],
},
{
name: ["-v", "--verbose"],
description: "Shortcut for '--verbose=all",
},
],
subcommands: [
{
name: "add",
description: "Add a dependency to pubspec.yaml",
options: [
...globalOptions,
{
name: ["-d", "--dev"],
description:
"Adds package to the development dependencies instead",
},
{
name: "--git-url",
description: "Git URL of the package",
},
{
name: "--git-ref",
description: "Git branch or commit to be retrieved",
},
{
name: "--git-path",
description: "Path of git package in repository",
},
{
name: "--hosted-url",
description: "URL of package host server",
},
{
name: "--path",
description: "Local path",
},
{
name: "--sdk",
description: "SDK source for package",
},
offline,
noOffline,
dryRun,
precompile,
noPrecompile,
],
args: { name: "package", description: "Dart pub package name" },
},
{
name: "cache",
description: "Work with the Pub system cache",
options: [...globalOptions],
subcommands: [
{
name: "add",
description: "Install a package",
options: [
...globalOptions,
{
name: "--all",
description: "Install all matching versions",
},
{
name: ["-v", "--version"],
description: "Version constraint",
},
],
args: { name: "package" },
},
{
name: "repair",
description: "Reinstall a cached package",
options: globalOptions,
},
],
},
{
name: "deps",
description: "Print package dependencies",
options: [
...globalOptions,
{
name: ["-s", "--style"],
description: "How output should be displayed",
args: {
name: "style",
suggestions: ["compact", "tree", "list"],
},
},
{
name: "--dev",
description: "Include dev dependencies. (defaults to on)",
exclusiveOn: ["--no-dev"],
},
{
name: "--no-dev",
description: "Do not include dev dependencies. (defaults to off)",
exclusiveOn: ["--dev"],
},
{
name: "--executables",
description: "List all available executables",
},
],
},
{
name: "downgrade",
description: "Downgrade packages in a Flutter project",
options: [...globalOptions, offline, noOffline, dryRun],
},
{
name: "get",
description: "Get packages in a Flutter project",
options: [
...globalOptions,
offline,
noOffline,
dryRun,
precompile,
noPrecompile,
],
},
{
name: "global",
description: "Work with Pub global packages",
options: globalOptions,
subcommands: [
{
name: "activate",
description: "Make a package's executables globally available",
options: [
...globalOptions,
{
name: ["-s", "--source"],
description: "The source used to find the package",
args: {
name: "source",
suggestions: ["git", "hosted", "path"],
},
},
{
name: "--no-executables",
description: "Do not put executables on PATH",
},
{
name: ["-x", "--executable"],
description: "Executable(s) to place on PATH",
},
{
name: "--overwrite",
description:
"Overwrite executables from other packages with the same name",
},
{
name: ["-u", "--hosted-url"],
description:
"A custom pub server URL for the package. Only applies when using the 'hosted' source",
args: { name: "url" },
},
],
},
{
name: "deactivate",
description: "Remove a previously activated package",
options: globalOptions,
},
{
name: "list",
description: "List globally activated packages",
options: globalOptions,
},
{
name: "run",
description:
"Run an executable from a globally activated package",
options: [
...globalOptions,
enableAsserts,
noEnableAsserts,
{
name: "--enable-experiement",
description:
"Runs the executable in a VM with the given experiments enabled. (Will disable snapshotting, resulting in slower startup)",
args: { name: "experiment" },
},
{
name: "--sound-null-safety",
description:
"Override the default null safety execution mode",
exclusiveOn: ["--no-sound-null-safety"],
},
{
name: "--no-sound-null-safety",
description:
"Do not override the default null safety execution mode",
exclusiveOn: ["--sound-null-safety"],
},
],
},
],
},
{
name: "login",
description: "Log into pub.dev",
options: globalOptions,
},
{
name: "logout",
description: "Log out of pub.dev",
options: globalOptions,
},
{
name: "outdated",
description:
"Analyze dependencies to find which ones can be upgraded",
options: [
...globalOptions,
{
name: "--color",
description:
"Color the the output. Defaults to color when connected to a terminal, and no-color otherwise",
exclusiveOn: ["--no-color"],
},
{
name: "--no-color",
description:
"Do not color the output. Defaults to color when connected to a terminal, and no-color otherwise",
exclusiveOn: ["--color"],
},
{
name: "--dependency-overrides",
description:
"Show resolutions with 'dependency_overries'. (defaults to on)",
exclusiveOn: ["--no-dependency-overrides"],
},
{
name: "--no-dependency-overrides",
description:
"Do not show resolutions with 'dependency_overries'. (defaults to on)",
exclusiveOn: ["--dependency-overrides"],
},
{
name: "--json",
description: "Output the results sing a JSON format",
},
{
name: "--mode",
description:
"Highlight versions with PROPERTY. Only packages missing the PROPERTY will be included unless --show-all",
args: {
name: "property",
suggestions: ["outdated", "null-safety"],
},
},
{
name: "--prereleases",
description:
"Include prereleases in latest version. (defaults to on in --mode=null-safety)",
exclusiveOn: ["--no-prereleases"],
},
{
name: "--no-prereleases",
description:
"Do not inlcude prereleases in latest version. (defaults to off in --mode=null-safety)",
exclusiveOn: ["--prereleases"],
},
{
name: "--show-all",
description:
"Include dependencies that are already fullfilling --mode",
exclusiveOn: ["--no-show-all"],
},
{
name: "--no-show-all",
description:
"Do not include dependencies that are already fullfilling --mode",
exclusiveOn: ["--show-all"],
},
{
name: ["--transitive", "--no-transitive"],
description:
"Show transitive dependencies. (defaults to off in --mode=null-safety",
},
],
},
{
name: "publish",
description: "Publish the current package to pub.dartlang.org",
options: [
...globalOptions,
dryRun,
{
name: ["-f", "--force"],
description:
"Publish without confirmation if there are no errors",
},
],
},
{
name: "remove",
description: "Removes a dependency from the current package",
options: [
...globalOptions,
offline,
noOffline,
dryRun,
precompile,
noPrecompile,
],
},
{
name: "upgrade",
description:
"Upgrade the current package's dependencies to latest versions",
options: [
...globalOptions,
offline,
noOffline,
dryRun,
precompile,
noPrecompile,
{
name: "--null-safety",
description:
"Upgrade constraints in pubspec.yaml to null-safety versions",
},
{
name: "--major-versions",
description:
"Upgrades packages to their latest resolvable versions, and updates pubspec.yaml",
},
],
},
{
name: "uploader",
description: "Manage uploaders for a package on pub.dev",
options: [
...globalOptions,
{
name: "--package",
description:
"The package whose uploaders will be modified. (defaults to the current package)",
},
],
},
],
},
{
name: "run",
description: "Run a Dart program",
options: [
...globalOptions,
{
name: "--observe",
description:
"The observe flag is a convenience flag used to run a program with a set of common options. Useful for debugging",
args: portOrBindAddress,
},
{
name: "--enable-vm-service",
description:
"Enables the VM service and listens on the specified port for connections (default port number is 8181, default dind address is localhost)",
args: portOrBindAddress,
},
{
name: ["--pause-isolates-on-exit", "--no-pause-isolates-on-exit"],
description:
"Pause isolates on exit when running with --enable-vm-service",
},
{
name: "--pause-isolates-on-unhandled-exceptions",
description:
"Pause isolates when an unhandled exception is encountered when running with --enable-vm-service",
exclusiveOn: ["--no-pause-isolates-on-unhandled-exceptions"],
},
{
name: "--no-pause-isolates-on-unhandled-exceptions",
description:
"Do not pause isolates when an unhandled exception is encountered when running with --enable-vm-service",
exclusiveOn: ["--pause-isolates-on-unhandled-exceptions"],
},
{
name: "--warn-on-pause-with-no-debugger",
description:
"Print a warning when an isolate pauses with no attahed debugger when running with --enable-vm-service",
exclusiveOn: ["--no-warn-on-pause-with-no-debugger"],
},
{
name: "--no-warn-on-pause-with-no-debugger",
description:
"Do not print a warning when an isolate pauses with no attahed debugger when running with --enable-vm-service",
exclusiveOn: ["--warn-on-pause-with-no-debugger"],
},
{
name: "--pause-isolates-on-start",
description:
"Pause isolates on start when running with --enable-vm-service",
exclusiveOn: ["--no-pause-isolates-on-start"],
},
{
name: "--no-pause-isolates-on-start",
description:
"Do not pause isolates on start when running with --enable-vm-service",
exclusiveOn: ["--pause-isolates-on-start"],
},
enableAsserts,
noEnableAsserts,
verbosity,
define,
{
name: "--disable-service-auth-codes",
description:
"Disables the requirement for an authentication code to communicate with the VM service. Authentication codes help protect against CSRF attacks, so it is not recommended to diable them unless behind a firewall on a secure device",
},
{
name: "--enable-service-port-fallback",
description:
"When the VM service is told to bind to a particular port, fallback to 0 if it fails to bind intead of failing to start",
},
{
name: "--namespace",
description:
"The path to a directory that dart:io calls will treat as the root of the filesystem",
args: {
name: "path",
template: "folders",
},
},
{
name: "--root-certs-file",
description:
"The The path to a file containing the trusted root certificates to use for secure socket connections",
args: {
name: "path",
template: "filepaths",
},
},
{
name: "--root-certs-cache",
description:
"The path to a cache directory containing the trusted root certificates to use for secure socket connections",
args: {
name: "path",
template: "folders",
},
},
{
name: "--trace-loading",
description: "Enables tracing of library and script loading",
},
{
name: "--enable-experiment",
description:
"Enable one or more experimental features (see dart.dev/go/experiments",
args: {
name: "experiment",
suggestions: [
{
name: "const-functions",
description:
"Allow more of the Dart language to be executed in const expressions",
},
{
name: "extension-methods",
description: "Extension methods (no-op - enabled by default)",
},
{
name: "extension-types",
description: "Extension types",
},
{
name: "generic-metadata",
description:
"Allow annotations to accept type arguments; also allow generic function types as type arguments",
},
{