forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrew.ts
1578 lines (1569 loc) · 47.9 KB
/
brew.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 servicesGenerator = (action: string): Fig.Generator => ({
script: "brew services list | sed -e 's/ .*//' | tail -n +2",
postProcess: function (out) {
return out
.split("\n")
.filter((line) => !line.includes("unbound"))
.map((line) => ({
name: line,
icon: "fig://icon?type=package",
description: `${action} ${line}`,
}));
},
});
const repositoriesGenerator = (): Fig.Generator => ({
script: "brew tap",
postProcess: (out) => {
return out.split("\n").map((line) => ({ name: line }));
},
});
const formulaeGenerator: Fig.Generator = {
script: "brew list -1",
postProcess: function (out) {
return out
.split("\n")
.filter((line) => !line.includes("="))
.map((formula) => ({
name: formula,
icon: "🍺",
description: "Installed formula",
}));
},
};
const outdatedformulaeGenerator: Fig.Generator = {
script: "brew outdated -q",
postProcess: function (out) {
return out.split("\n").map((formula) => ({
name: formula,
icon: "🍺",
description: "Outdated formula",
}));
},
};
const commonOptions: Fig.Option[] = [
{
name: ["-d", "--debug"],
description: "Display any debugging information",
},
{
name: ["-q", "--quiet"],
description: "Make some output more quiet",
},
{
name: ["-v", "--verbose"],
description: "Make some output more verbose",
},
{ name: ["-h", "--help"], description: "Show this message" },
];
// brew info is equiv to brew abv. Everything but 'name' is shared.
const brewInfo = (name: string): Fig.Subcommand => ({
name,
description: "Display brief statistics for your Homebrew installation",
args: {
isVariadic: true,
isOptional: true,
name: "formula",
description: "Formula or cask to summarize",
generators: {
script:
"HBPATH=$(brew --repository); ls -1 $HBPATH/Library/Taps/homebrew/homebrew-core/Formula $HBPATH/Library/Taps/homebrew/homebrew-cask/Casks",
postProcess: (out) =>
[...new Set(out.split("\n"))].map((formula) => ({
name: formula.replace(".rb", ""),
description: "Formula",
icon: "🍺",
priority:
(formula[0] >= "0" && formula[0] <= "9") || formula[0] == "/"
? 0
: 51,
})),
},
},
options: [
{
name: "--analytics",
description:
"List global Homebrew analytics data or, if specified, installation and build error data for formula",
},
{
name: "--days",
description: "How many days of analytics data to retrieve",
exclusiveOn: ["--analytics"],
args: {
name: "days",
description: "Number of days of data to retrieve",
suggestions: ["30", "90", "365"],
},
},
{
name: "--category",
description: "Which type of analytics data to retrieve",
exclusiveOn: ["--analytics"],
args: {
generators: {
custom: async (ctx) => {
// if anything provided after the subcommand does not begin with '-'
// then a formula has been provided and we should provide info on it
if (
ctx.slice(2, ctx.length - 1).some((token) => token[0] !== "-")
) {
return ["install", "install-on-request", "build-error"].map(
(sugg) => ({
name: sugg,
})
);
}
// if no formulas are specified, then we should provide system info
return ["cask-install", "os-version"].map((sugg) => ({
name: sugg,
}));
},
},
},
},
{
name: "--github",
description: "Open the GitHub source page for formula in a browser",
},
{
name: "--json",
description: "Print a JSON representation",
},
{
name: "--installed",
exclusiveOn: ["--json"],
description: "Print JSON of formulae that are currently installed",
},
{
name: "--all",
exclusiveOn: ["--json"],
description: "Print JSON of all available formulae",
},
{
name: ["-v", "--verbose"],
description: "Show more verbose analytics data for formulae",
},
{
name: "--formula",
description: "Treat all named arguments as formulae",
},
{
name: "--cash",
description: "Treat all named arguments as casks",
},
{
name: ["-d", "--debug"],
description: "Display any debugging information",
},
{
name: ["-q", "--quiet"],
description: "List only the names of outdated kegs",
},
{
name: ["-h", "--help"],
description: "Get help with services command",
},
],
});
const completionSpec: Fig.Spec = {
name: "brew",
description: "Package manager for macOS",
subcommands: [
{
name: "list",
description: "List all installed formulae",
options: [
...commonOptions,
{
name: ["--formula", "--formulae"],
description:
"List only formulae, or treat all named arguments as formulae",
},
{
name: ["--cask", "--casks"],
description: "List only casks, or treat all named arguments as casks",
},
{
name: "--unbrewed",
description:
"List files in Homebrew's prefix not installed by Homebrew. (disabled; replaced by brew --prefix --unbrewed)",
},
{
name: "--full-name",
description:
"Print formulae with fully-qualified names. Unless --full-name, --versions or",
},
{
name: "--pinned",
description:
"List only pinned formulae, or only the specified (pinned) formulae if formula are provided",
},
{
name: "--versions",
description:
"Show the version number for installed formulae, or only the specified formulae if formula are provided",
},
{
name: "--multiple",
description: "Only show formulae with multiple versions installed",
},
{
name: "--pinned",
description:
"List only pinned formulae, or only the specified (pinned) formulae if formula are provided. See also pin, unpin",
},
{
name: "-1",
description:
"Force output to be one entry per line. This is the default when output is not to a terminal",
},
{
name: "-l",
description:
"List formulae and/or casks in long format. Has no effect when a formula or cask name is passed as an argument",
},
{
name: "-r",
description:
"Reverse the order of the formulae and/or casks sort to list the oldest entries first. Has no effect when a formula or cask name is passed as an argument",
},
{
name: "-t",
description:
"Sort formulae and/or casks by time modified, listing most recently modified first. Has no effect when a formula or cask name is passed as an argument",
},
],
args: {
isOptional: true,
isVariadic: true,
name: "formula",
generators: formulaeGenerator,
},
},
{
name: "ls",
description: "List all installed formulae",
options: [
...commonOptions,
{
name: "--formula,",
description:
"List only formulae, or treat all named arguments as formulae",
},
{
name: "--cask",
description: "List only casks, or treat all named arguments as casks",
},
{
name: "--unbrewed",
description:
"List files in Homebrew's prefix not installed by Homebrew. (disabled; replaced by brew --prefix --unbrewed)",
},
{
name: "--full-name",
description:
"Print formulae with fully-qualified names. Unless --full-name, --versions or",
},
{
name: "--pinned",
description:
"List only pinned formulae, or only the specified (pinned) formulae if formula are provided",
},
{
name: "--versions",
description:
"Show the version number for installed formulae, or only the specified formulae if formula are provided",
},
{
name: "--multiple",
description: "Only show formulae with multiple versions installed",
},
{
name: "--pinned",
description:
"List only pinned formulae, or only the specified (pinned) formulae if formula are provided",
},
{
name: "-1",
description:
"Force output to be one entry per line. This is the default when output is not to a terminal",
},
{
name: "-l",
description:
"List formulae and/or casks in long format. Has no effect when a formula or cask name is passed as an argument",
},
{
name: "-r",
description:
"Reverse the order of the formulae and/or casks sort to list the oldest entries first. Has no effect when a formula or cask name is passed as an argument",
},
{
name: "-t",
description:
"Sort formulae and/or casks by time modified, listing most recently modified first. Has no effect when a formula or cask name is passed as an argument",
},
],
args: {
isOptional: true,
isVariadic: true,
name: "formula",
generators: formulaeGenerator,
},
},
{
name: "leaves",
description:
"List installed formulae that are not dependencies of another installed formula",
options: [
{
name: ["-r", "--installed-on-request"],
description: "Show manually installed formula",
},
{
name: ["-p", "--installed-as-dependency"],
description: "Show installed formula as dependencies",
},
],
},
{
name: "doctor",
description: "Check your system for potential problems",
options: [
...commonOptions,
{
name: "--list-checks",
description: "List all audit methods",
},
{
name: ["-D", "--audit-debug"],
description: "Enable debugging and profiling of audit methods",
},
],
},
brewInfo("info"),
brewInfo("abv"),
{
name: "update",
description: "Fetch the newest version of Homebrew and all formulae",
options: [
{
name: ["-f", "--force"],
description: "Always do a slower, full update check",
},
{
name: ["-v", "--verbose"],
description:
"Print the directories checked and git operations performed",
},
{
name: ["-d", "--debug"],
description:
"Display a trace of all shell commands as they are executed",
},
{ name: ["-h", "--help"], description: "Show help message" },
{
name: "--merge",
description:
"Use git merge to apply updates (rather than git rebase)",
},
{
name: "--preinstall",
description:
"Run on auto-updates (e.g. before brew install). Skips some slower steps",
},
],
},
{
name: "outdated",
description:
"List installed casks and formulae that have an updated version available",
options: [
{
name: ["-d", "--debug"],
description: "Display any debugging information",
},
{
name: ["-q", "--quiet"],
description: "List only the names of outdated kegs",
},
{
name: ["-v", "--verbose"],
description: "Include detailed version information",
},
{
name: ["-h", "--help"],
description: "Show help message for the outdated command",
},
{ name: "--cask", description: "List only outdated casks" },
{
name: "--fetch-HEAD",
description:
"Fetch the upstream repository to detect if the HEAD installation of the formula is outdated",
},
{ name: "--formula", description: "List only outdated formulae" },
{
name: "--greedy",
description:
"Print outdated casks with auto_updates or version :latest",
},
{
name: "--greedy-latest",
description:
"Print outdated casks including those with version :latest",
},
{
name: "--greedy-auto-updates",
description:
"Print outdated casks including those with auto_updates true",
},
{ name: "--json", description: "Print output in JSON format" },
],
},
{
name: "pin",
description: "Pin formula, preventing them from being upgraded",
options: commonOptions,
args: {
isVariadic: true,
name: "formula",
generators: formulaeGenerator,
},
},
{
name: "unpin",
description: "Unpin formula, allowing them to be upgraded",
options: commonOptions,
args: {
isVariadic: true,
name: "formula",
generators: formulaeGenerator,
},
},
{
name: "upgrade",
description:
"Upgrade outdated casks and outdated, unpinned formulae using the same options they were originally installed with, plus any appended brew formula options",
options: [
{
name: ["-d", "--debug"],
description:
"If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory",
},
{
name: ["-f", "--force"],
description:
"Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks, overwrite existing files (binaries and symlinks are excluded, unless originally from the same cask)",
},
{
name: ["-v", "--verbose"],
description: "Print the verification and postinstall steps",
},
{
name: ["-n", "--dry-run"],
description:
"Show what would be upgraded, but do not actually upgrade anything",
},
{
name: ["-s", "--build-from-source"],
description:
"Compile formula from source even if a bottle is provided. Dependencies will still be installed from bottles if they are available",
},
{
name: ["-i", "--interactive"],
description: "Download and patch formula, then open a shell",
},
{ name: ["-g", "--git"], description: "Create a Git repository" },
{
name: ["-q", "--quiet"],
description: "Make some output more quiet",
},
{ name: ["-h", "--help"], description: "Show this message" },
{
name: ["--formula", "--formulae"],
description:
"Treat all named arguments as formulae. If no named arguments are specified, upgrade only outdated formulae",
},
{
name: "--env",
description: "Disabled other than for internal Homebrew use",
},
{
name: "--ignore-dependencies",
description:
"An unsupported Homebrew development flag to skip installing any dependencies of any kind. If the dependencies are not already present, the formula will have issues. If you're not developing Homebrew, consider adjusting your PATH rather than using this flag",
},
{
name: "--only-dependencies",
description:
"Install the dependencies with specified options but do not install the formula itself",
},
{
name: "--cc",
description:
"Attempt to compile using the specified compiler, which should be the name of the compiler's executable",
args: {
name: "compiler",
suggestions: ["gcc-7", "llvm_clang", "clang"],
},
},
{
name: "--force-bottle",
description:
"Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation",
},
{
name: "--include-test",
description:
"Install testing dependencies required to run brew test formula",
},
{
name: "--HEAD",
description:
"If formula defines it, install the HEAD version, aka. main, trunk, unstable, master",
},
{
name: "--fetch-HEAD",
description:
"Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository's HEAD will only be checked for updates when a new stable or development version has been released",
},
{
name: "--ignore-pinned",
description:
"Set a successful exit status even if pinned formulae are not upgraded",
},
{
name: "--keep-tmp",
description: "Retain the temporary files created during installation",
},
{
name: "--build-bottle",
description:
"Prepare the formula for eventual bottling during installation, skipping any post-install steps",
},
{
name: "--bottle-arch",
description:
"Optimise bottles for the specified architecture rather than the oldest architecture supported by the version of macOS the bottles are built on",
},
{
name: "--display-times",
description:
"Print install times for each formula at the end of the run",
},
{
name: ["--cask", "--casks"],
description:
"Treat all named arguments as casks. If no named arguments are specified, upgrade only outdated casks",
},
{
name: "--binaries",
description:
"Disable/enable linking of helper executables (default: enabled)",
exclusiveOn: ["--no-binaries"],
},
{
name: "--no-binaries",
description:
"Disable/enable linking of helper executables (default: enabled)",
exclusiveOn: ["--binaries"],
},
{
name: "--require-sha",
description: "Require all casks to have a checksum",
},
{
name: "--quarantine",
description:
"Disable/enable quarantining of downloads (default: enabled)",
exclusiveOn: ["--no-quarantine"],
},
{
name: "--no-quarantine",
description:
"Disable/enable quarantining of downloads (default: enabled)",
exclusiveOn: ["--quarantine"],
},
{
name: "--skip-cask-deps",
description: "Skip installing cask dependencies",
},
{
name: "--greedy",
description:
"Also include casks with auto_updates true or version :latest",
exclusiveOn: ["--greedy-latest", "--greedy-auto-updates"],
},
{
name: "--greedy-latest",
description: "Also include casks with version :latest",
},
{
name: "--greedy-auto-updates",
description: "Also include casks with auto_updates true",
},
{
name: "--appdir",
description:
"Target location for Applications (default: /Applications)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--colorpickerdir",
description:
"Target location for Color Pickers (default: ~/Library/ColorPickers)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--prefpanedir",
description:
"Target location for Preference Panes (default: ~/Library/PreferencePanes)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--qlplugindir",
description:
"Target location for QuickLook Plugins (default: ~/Library/QuickLook)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--mdimporterdir",
description:
"Target location for Spotlight Plugins (default: ~/Library/Spotlight)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--dictionarydir",
description:
"Target location for Dictionaries (default: ~/Library/Dictionaries)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--fontdir",
description: "Target location for Fonts (default: ~/Library/Fonts)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--servicedir",
description:
"Target location for Services (default: ~/Library/Services)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--input-methoddir",
description:
"Target location for Input Methods (default: ~/Library/Input Methods)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--internet-plugindir",
description:
"Target location for Internet Plugins (default: ~/Library/Internet Plug-Ins)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--audio-unit-plugindir",
description:
"Target location for Audio Unit Plugins (default: ~/Library/Audio/Plug-Ins/Components)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--vst-plugindir",
description:
"Target location for VST Plugins (default: ~/Library/Audio/Plug-Ins/VST)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--vst3-plugindir",
description:
"Target location for VST3 Plugins (default: ~/Library/Audio/Plug-Ins/VST3)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--screen-saverdir",
description:
"Target location for Screen Savers (default: ~/Library/Screen Savers)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--language",
description:
"Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask's default language. The default value is the language of your system",
},
],
args: {
isVariadic: true,
isOptional: true,
name: "outdated_formula|outdated_cask",
generators: outdatedformulaeGenerator,
},
},
{
name: "search",
description:
"Perform a substring search of cask tokens and formula names",
options: [
...commonOptions,
{
name: "--formula,",
description: "Search online and locally for formulae",
},
{
name: "--cask",
description: "Search online and locally for casks",
},
{
name: "--desc",
description:
"Search for formulae with a description matching text and casks with a name matching text",
},
{
name: "--pull-request",
description: "Search for GitHub pull requests containing text",
},
{
name: "--open",
description: "Search for only open GitHub pull requests",
},
{
name: "--closed",
description: "Search for only closed GitHub pull requests",
},
{
name: ["--repology", "--macports"],
description: "Search for text in the given database",
},
{
name: ["--fink", "--opensuse"],
description: "Search for text in the given database",
},
{
name: ["--fedora", "--debian"],
description: "Search for text in the given database",
},
{
name: "--ubuntu",
description: "Search for text in the given database",
},
],
},
{
name: "config",
description: "Show Homebrew and system configuration info",
},
{
name: "postinstall",
description: "Rerun the post install step for formula",
options: [
{
name: ["-d", "--debug"],
description: "Display any debugging information",
},
{
name: ["-v", "--verbose"],
description: "Make some output more verbose",
},
{
name: ["-q", "--quiet"],
description: "Make some output more quiet",
},
{ name: ["-h", "--help"], description: "Show this message" },
],
args: {
isVariadic: true,
name: "formula",
generators: formulaeGenerator,
},
},
{
name: "install",
description: "Install <formula>",
options: [
{
name: ["-f", "--force"],
description:
"Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks",
},
{
name: ["-v", "--verbose"],
description: "Print the verification and postinstall steps",
},
{
name: ["-s", "--build-from-source"],
description:
"Compile formula from source even if a bottle is provided. Dependencies will still be installed from bottles if they are available",
},
{
name: ["-i", "--interactive"],
description: "Download and patch formula",
},
{ name: ["-g", "--git"], description: "Create a Git repository" },
{
name: ["-q", "--quiet"],
description: "Make some output more quiet",
},
{ name: ["-h", "--help"], description: "Show this message" },
{
name: "--formula,",
description: "Treat all named arguments as formulae",
},
{
name: "--env",
description: "Disabled other than for internal Homebrew use",
},
{
name: "--ignore-dependencies",
description:
"An unsupported Homebrew development flag to skip installing any dependencies of any kind. If the dependencies are not already present, the formula will have issues. If you're not developing Homebrew, consider adjusting your PATH rather than using this flag",
},
{
name: "--only-dependencies",
description:
"Install the dependencies with specified options but do not install the formula itself",
},
{
name: "--cc",
description:
"Attempt to compile using the specified compiler, which should be the name of the compiler's executable",
args: {
name: "compiler",
suggestions: ["gcc-7", "llvm_clang", "clang"],
},
},
{
name: "--force-bottle",
description:
"Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation",
},
{
name: "--include-test",
description:
"Install testing dependencies required to run brew test formula",
},
{
name: "--HEAD",
description:
"If formula defines it, install the HEAD version, aka. main, trunk, unstable, master",
},
{
name: "--fetch-HEAD",
description:
"Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository's HEAD will only be checked for updates when a new stable or development version has been released",
},
{
name: "--keep-tmp",
description: "Retain the temporary files created during installation",
},
{
name: "--build-bottle",
description:
"Prepare the formula for eventual bottling during installation, skipping any post-install steps",
},
{
name: "--bottle-arch",
description:
"Optimise bottles for the specified architecture rather than the oldest architecture supported by the version of macOS the bottles are built on",
},
{
name: "--display-times",
description:
"Print install times for each formula at the end of the run",
},
{
name: "--cask",
description: "--casks Treat all named arguments as casks",
},
{
name: "--binaries",
description:
"Disable/enable linking of helper executables (default: enabled)",
},
{
name: "--no-binaries",
description:
"Disable/enable linking of helper executables (default: enabled)",
},
{
name: "--require-sha",
description: "Require all casks to have a checksum",
},
{
name: "--quarantine",
description:
"Disable/enable quarantining of downloads (default: enabled)",
},
{
name: "--no-quarantine",
description:
"Disable/enable quarantining of downloads (default: enabled)",
},
{
name: "--skip-cask-deps",
description: "Skip installing cask dependencies",
},
{
name: "--appdir",
description:
"Target location for Applications (default: /Applications)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--colorpickerdir",
description:
"Target location for Color Pickers (default: ~/Library/ColorPickers)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--prefpanedir",
description:
"Target location for Preference Panes (default: ~/Library/PreferencePanes)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--qlplugindir",
description:
"Target location for QuickLook Plugins (default: ~/Library/QuickLook)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--mdimporterdir",
description:
"Target location for Spotlight Plugins (default: ~/Library/Spotlight)",
args: {
name: "location",
template: "folders",
},
},
{
name: "--dictionarydir",
description: