Debian Codegraph @

cli/tools-cli/test/versioning/fixtures/case-4/expected-spec/old-spec/1.0.0.ts

raw symbols SCIP
1 import {
2 settingsSpecGenerator,
3 subsystemsGenerator,
4 themesGenerator,
5 pluginsGenerator,
6 tokensGenerators,
7 invitationsGenerators,
8 membersGenerators,
9 teamsGenerators,
10 workflowsSpecGenerator,
11 sshHostsGenerator,
12 sshIdentityGenerator,
13 userGenerator,
14 } from "./shared";
15
16 const completion: Fig.Subcommand = {
17 name: "fig",
18 description: "The CLI for Fig",
19 subcommands: [
20 {
21 name: "app",
22 description: "Interact with the desktop app",
23 subcommands: [
24 {
25 name: "install",
26 description: "Install the Fig app",
27 options: [
28 {
29 name: "--version",
30 description: "Print version information",
31 },
32 {
33 name: ["-h", "--help"],
34 description: "Print help information",
35 },
36 ],
37 },
38 {
39 name: "onboarding",
40 description: "Run the Fig tutorial again",
41 options: [
42 {
43 name: "--version",
44 description: "Print version information",
45 },
46 {
47 name: ["-h", "--help"],
48 description: "Print help information",
49 },
50 ],
51 },
52 {
53 name: "running",
54 description: "Check if Fig is running",
55 options: [
56 {
57 name: "--version",
58 description: "Print version information",
59 },
60 {
61 name: ["-h", "--help"],
62 description: "Print help information",
63 },
64 ],
65 },
66 {
67 name: "launch",
68 description: "Launch the Fig desktop app",
69 options: [
70 {
71 name: "--version",
72 description: "Print version information",
73 },
74 {
75 name: ["-h", "--help"],
76 description: "Print help information",
77 },
78 ],
79 },
80 {
81 name: "restart",
82 description: "Restart the Fig desktop app",
83 options: [
84 {
85 name: "--version",
86 description: "Print version information",
87 },
88 {
89 name: ["-h", "--help"],
90 description: "Print help information",
91 },
92 ],
93 },
94 {
95 name: "quit",
96 description: "Quit the Fig desktop app",
97 options: [
98 {
99 name: "--version",
100 description: "Print version information",
101 },
102 {
103 name: ["-h", "--help"],
104 description: "Print help information",
105 },
106 ],
107 },
108 {
109 name: "set-path",
110 description: "Set the internal psudo-terminal path",
111 options: [
112 {
113 name: "--version",
114 description: "Print version information",
115 },
116 {
117 name: ["-h", "--help"],
118 description: "Print help information",
119 },
120 ],
121 },
122 {
123 name: "uninstall",
124 description: "Uninstall the Fig app",
125 options: [
126 {
127 name: "--version",
128 description: "Print version information",
129 },
130 {
131 name: ["-h", "--help"],
132 description: "Print help information",
133 },
134 ],
135 },
136 {
137 name: "prompts",
138 description: "Prompts shown on terminal startup",
139 options: [
140 {
141 name: "--version",
142 description: "Print version information",
143 },
144 {
145 name: ["-h", "--help"],
146 description: "Print help information",
147 },
148 ],
149 },
150 {
151 name: "help",
152 description:
153 "Print this message or the help of the given subcommand(s)",
154 options: [
155 {
156 name: "--version",
157 description: "Print version information",
158 },
159 {
160 name: ["-h", "--help"],
161 description: "Print help information",
162 },
163 ],
164 args: {
165 name: "subcommand",
166 isOptional: true,
167 },
168 },
169 ],
170 options: [
171 {
172 name: ["-h", "--help"],
173 description: "Print help information",
174 },
175 ],
176 },
177 {
178 name: "hook",
179 description: "Hook commands",
180 hidden: true,
181 subcommands: [
182 {
183 name: "editbuffer",
184 options: [
185 {
186 name: "--version",
187 description: "Print version information",
188 },
189 {
190 name: ["-h", "--help"],
191 description: "Print help information",
192 },
193 ],
194 args: [
195 {
196 name: "session-id",
197 },
198 {
199 name: "integration",
200 },
201 {
202 name: "tty",
203 },
204 {
205 name: "pid",
206 },
207 {
208 name: "histno",
209 },
210 {
211 name: "cursor",
212 },
213 {
214 name: "text",
215 },
216 ],
217 },
218 {
219 name: "event",
220 options: [
221 {
222 name: "--version",
223 description: "Print version information",
224 },
225 {
226 name: ["-h", "--help"],
227 description: "Print help information",
228 },
229 ],
230 args: {
231 name: "event-name",
232 },
233 },
234 {
235 name: "hide",
236 options: [
237 {
238 name: "--version",
239 description: "Print version information",
240 },
241 {
242 name: ["-h", "--help"],
243 description: "Print help information",
244 },
245 ],
246 },
247 {
248 name: "init",
249 options: [
250 {
251 name: "--version",
252 description: "Print version information",
253 },
254 {
255 name: ["-h", "--help"],
256 description: "Print help information",
257 },
258 ],
259 args: [
260 {
261 name: "pid",
262 },
263 {
264 name: "tty",
265 },
266 ],
267 },
268 {
269 name: "integration-ready",
270 options: [
271 {
272 name: "--version",
273 description: "Print version information",
274 },
275 {
276 name: ["-h", "--help"],
277 description: "Print help information",
278 },
279 ],
280 args: {
281 name: "integration",
282 },
283 },
284 {
285 name: "keyboard-focus-changed",
286 options: [
287 {
288 name: "--version",
289 description: "Print version information",
290 },
291 {
292 name: ["-h", "--help"],
293 description: "Print help information",
294 },
295 ],
296 args: [
297 {
298 name: "app-identifier",
299 },
300 {
301 name: "focused-session-id",
302 },
303 ],
304 },
305 {
306 name: "pre-exec",
307 options: [
308 {
309 name: "--version",
310 description: "Print version information",
311 },
312 {
313 name: ["-h", "--help"],
314 description: "Print help information",
315 },
316 ],
317 args: [
318 {
319 name: "pid",
320 },
321 {
322 name: "tty",
323 },
324 ],
325 },
326 {
327 name: "prompt",
328 options: [
329 {
330 name: "--version",
331 description: "Print version information",
332 },
333 {
334 name: ["-h", "--help"],
335 description: "Print help information",
336 },
337 ],
338 args: [
339 {
340 name: "pid",
341 },
342 {
343 name: "tty",
344 },
345 ],
346 },
347 {
348 name: "ssh",
349 options: [
350 {
351 name: "--version",
352 description: "Print version information",
353 },
354 {
355 name: "--prompt",
356 },
357 {
358 name: ["-h", "--help"],
359 description: "Print help information",
360 },
361 ],
362 args: [
363 {
364 name: "pid",
365 },
366 {
367 name: "tty",
368 },
369 {
370 name: "control-path",
371 },
372 {
373 name: "remote-dest",
374 },
375 ],
376 },
377 {
378 name: "help",
379 description:
380 "Print this message or the help of the given subcommand(s)",
381 options: [
382 {
383 name: "--version",
384 description: "Print version information",
385 },
386 {
387 name: ["-h", "--help"],
388 description: "Print help information",
389 },
390 ],
391 args: {
392 name: "subcommand",
393 isOptional: true,
394 },
395 },
396 ],
397 options: [
398 {
399 name: ["-h", "--help"],
400 description: "Print help information",
401 },
402 ],
403 },
404 {
405 name: "debug",
406 description: "Debug Fig",
407 subcommands: [
408 {
409 name: "app",
410 description: "Debug fig app",
411 options: [
412 {
413 name: "--version",
414 description: "Print version information",
415 },
416 {
417 name: ["-h", "--help"],
418 description: "Print help information",
419 },
420 ],
421 },
422 {
423 name: "build",
424 description: "Switch build",
425 options: [
426 {
427 name: "--version",
428 description: "Print version information",
429 },
430 {
431 name: ["-h", "--help"],
432 description: "Print help information",
433 },
434 ],
435 args: {
436 name: "build",
437 suggestions: ["dev", "prod", "staging"],
438 },
439 },
440 {
441 name: "autocomplete-window",
442 description: "Toggle/set autocomplete window debug mode",
443 options: [
444 {
445 name: "--version",
446 description: "Print version information",
447 },
448 {
449 name: ["-h", "--help"],
450 description: "Print help information",
451 },
452 ],
453 args: {
454 name: "mode",
455 isOptional: true,
456 suggestions: ["on", "off"],
457 },
458 },
459 {
460 name: "logs",
461 description: "Show fig debug logs",
462 options: [
463 {
464 name: "--version",
465 description: "Print version information",
466 },
467 {
468 name: ["-h", "--help"],
469 description: "Print help information",
470 },
471 ],
472 args: {
473 name: "files",
474 isOptional: true,
475 generators: subsystemsGenerator,
476 },
477 },
478 {
479 name: "ime",
480 description: "Fig input method editor",
481 options: [
482 {
483 name: "--version",
484 description: "Print version information",
485 },
486 {
487 name: ["-h", "--help"],
488 description: "Print help information",
489 },
490 ],
491 args: {
492 name: "command",
493 suggestions: [
494 "install",
495 "uninstall",
496 "select",
497 "deselect",
498 "enable",
499 "disable",
500 "status",
501 "register",
502 ],
503 },
504 },
505 {
506 name: "prompt-accessibility",
507 description: "Prompt accessibility",
508 options: [
509 {
510 name: "--version",
511 description: "Print version information",
512 },
513 {
514 name: ["-h", "--help"],
515 description: "Print help information",
516 },
517 ],
518 },
519 {
520 name: "sample",
521 description: "Sample fig process",
522 options: [
523 {
524 name: "--version",
525 description: "Print version information",
526 },
527 {
528 name: ["-h", "--help"],
529 description: "Print help information",
530 },
531 ],
532 },
533 {
534 name: "unix-socket",
535 description: "Debug fig unix sockets",
536 options: [
537 {
538 name: "--version",
539 description: "Print version information",
540 },
541 {
542 name: ["-h", "--help"],
543 description: "Print help information",
544 },
545 ],
546 },
547 {
548 name: "verify-codesign",
549 description: "Debug fig codesign verification",
550 options: [
551 {
552 name: "--version",
553 description: "Print version information",
554 },
555 {
556 name: ["-h", "--help"],
557 description: "Print help information",
558 },
559 ],
560 },
561 {
562 name: "shell-integrations",
563 description: "Toggle shell integrations",
564 options: [
565 {
566 name: "--version",
567 description: "Print version information",
568 },
569 {
570 name: ["-h", "--help"],
571 description: "Print help information",
572 },
573 ],
574 args: {
575 name: "mode",
576 isOptional: true,
577 suggestions: ["on", "off"],
578 },
579 },
580 {
581 name: "accessibility",
582 options: [
583 {
584 name: "--version",
585 description: "Print version information",
586 },
587 {
588 name: ["-h", "--help"],
589 description: "Print help information",
590 },
591 ],
592 args: {
593 name: "action",
594 isOptional: true,
595 suggestions: ["refresh", "reset", "prompt", "open", "status"],
596 },
597 },
598 {
599 name: "help",
600 description:
601 "Print this message or the help of the given subcommand(s)",
602 options: [
603 {
604 name: "--version",
605 description: "Print version information",
606 },
607 {
608 name: ["-h", "--help"],
609 description: "Print help information",
610 },
611 ],
612 args: {
613 name: "subcommand",
614 isOptional: true,
615 },
616 },
617 ],
618 options: [
619 {
620 name: ["-h", "--help"],
621 description: "Print help information",
622 },
623 ],
624 },
625 {
626 name: "settings",
627 description: "Customize appearance & behavior",
628 filterStrategy: "fuzzy",
629 subcommands: [
630 {
631 name: "init",
632 description: "Reload the settings listener",
633 options: [
634 {
635 name: "--version",
636 description: "Print version information",
637 },
638 {
639 name: ["-h", "--help"],
640 description: "Print help information",
641 },
642 ],
643 },
644 {
645 name: "docs",
646 description: "Get the settings documentation",
647 options: [
648 {
649 name: "--version",
650 description: "Print version information",
651 },
652 {
653 name: ["-h", "--help"],
654 description: "Print help information",
655 },
656 ],
657 },
658 {
659 name: "open",
660 description: "Open the settings file",
661 options: [
662 {
663 name: "--version",
664 description: "Print version information",
665 },
666 {
667 name: ["-h", "--help"],
668 description: "Print help information",
669 },
670 ],
671 },
672 {
673 name: "sync",
674 description: "Sync the current settings",
675 options: [
676 {
677 name: "--version",
678 description: "Print version information",
679 },
680 {
681 name: ["-h", "--help"],
682 description: "Print help information",
683 },
684 ],
685 },
686 {
687 name: "help",
688 description:
689 "Print this message or the help of the given subcommand(s)",
690 options: [
691 {
692 name: "--version",
693 description: "Print version information",
694 },
695 {
696 name: ["-h", "--help"],
697 description: "Print help information",
698 },
699 ],
700 args: {
701 name: "subcommand",
702 isOptional: true,
703 },
704 },
705 ],
706 options: [
707 {
708 name: ["-d", "--delete"],
709 description: "Delete",
710 },
711 {
712 name: ["-h", "--help"],
713 description: "Print help information",
714 },
715 ],
716 args: [
717 {
718 name: "key",
719 isOptional: true,
720 },
721 {
722 name: "value",
723 isOptional: true,
724 },
725 ],
726 generateSpec: settingsSpecGenerator,
727 },
728 {
729 name: "tips",
730 description: "Enable/disable fig tips",
731 subcommands: [
732 {
733 name: "enable",
734 description: "Enable fig tips",
735 options: [
736 {
737 name: "--version",
738 description: "Print version information",
739 },
740 {
741 name: ["-h", "--help"],
742 description: "Print help information",
743 },
744 ],
745 },
746 {
747 name: "disable",
748 description: "Disable fig tips",
749 options: [
750 {
751 name: "--version",
752 description: "Print version information",
753 },
754 {
755 name: ["-h", "--help"],
756 description: "Print help information",
757 },
758 ],
759 },
760 {
761 name: "reset",
762 description: "Reset the tips to the default",
763 hidden: true,
764 options: [
765 {
766 name: "--version",
767 description: "Print version information",
768 },
769 {
770 name: ["-h", "--help"],
771 description: "Print help information",
772 },
773 ],
774 },
775 {
776 name: "prompt",
777 description: "Show the tips",
778 hidden: true,
779 options: [
780 {
781 name: "--version",
782 description: "Print version information",
783 },
784 {
785 name: ["-h", "--help"],
786 description: "Print help information",
787 },
788 ],
789 },
790 {
791 name: "help",
792 description:
793 "Print this message or the help of the given subcommand(s)",
794 options: [
795 {
796 name: "--version",
797 description: "Print version information",
798 },
799 {
800 name: ["-h", "--help"],
801 description: "Print help information",
802 },
803 ],
804 args: {
805 name: "subcommand",
806 isOptional: true,
807 },
808 },
809 ],
810 options: [
811 {
812 name: ["-h", "--help"],
813 description: "Print help information",
814 },
815 ],
816 },
817 {
818 name: "install",
819 description: "Install fig cli components",
820 options: [
821 {
822 name: "--daemon",
823 description: "Install only the daemon",
824 exclusiveOn: ["--dotfiles"],
825 },
826 {
827 name: "--dotfiles",
828 description: "Install only the shell integrations",
829 },
830 {
831 name: "--no-confirm",
832 description: "Don't confirm automatic installation",
833 },
834 {
835 name: "--force",
836 description: "Force installation of fig",
837 },
838 {
839 name: ["-h", "--help"],
840 description: "Print help information",
841 },
842 ],
843 },
844 {
845 name: "uninstall",
846 description: "Uninstall fig",
847 hidden: true,
848 options: [
849 {
850 name: ["-h", "--help"],
851 description: "Print help information",
852 },
853 ],
854 },
855 {
856 name: "update",
857 description: "Update dotfiles",
858 options: [
859 {
860 name: ["-y", "--no-confirm"],
861 description: "Force update",
862 },
863 {
864 name: ["-h", "--help"],
865 description: "Print help information",
866 },
867 ],
868 },
869 {
870 name: "daemon",
871 description: "Run the daemon",
872 hidden: true,
873 options: [
874 {
875 name: ["-h", "--help"],
876 description: "Print help information",
877 },
878 ],
879 },
880 {
881 name: "diagnostic",
882 description: "Run diagnostic tests",
883 options: [
884 {
885 name: ["-f", "--format"],
886 description: "The format of the output",
887 args: {
888 name: "format",
889 isOptional: true,
890 suggestions: [
891 {
892 name: "plain",
893 description: "Outputs the results as markdown",
894 },
895 {
896 name: "json",
897 description: "Outputs the results as JSON",
898 },
899 ],
900 },
901 },
902 {
903 name: "--force",
904 description: "Force limited diagnostic output",
905 },
906 {
907 name: ["-h", "--help"],
908 description: "Print help information",
909 },
910 ],
911 },
912 {
913 name: "init",
914 description: "Generate the dotfiles for the given shell",
915 options: [
916 {
917 name: ["-h", "--help"],
918 description: "Print help information",
919 },
920 ],
921 args: [
922 {
923 name: "shell",
924 suggestions: [
925 {
926 name: "bash",
927 description: "Bash shell",
928 },
929 {
930 name: "zsh",
931 description: "Zsh shell",
932 },
933 {
934 name: "fish",
935 description: "Fish shell",
936 },
937 ],
938 },
939 {
940 name: "when",
941 suggestions: ["pre", "post"],
942 },
943 ],
944 hidden: true,
945 },
946 {
947 name: "source",
948 description: "Sync your latest dotfiles",
949 options: [
950 {
951 name: ["-h", "--help"],
952 description: "Print help information",
953 },
954 ],
955 },
956 {
957 name: "theme",
958 description: "Get or set theme",
959 options: [
960 {
961 name: ["-h", "--help"],
962 description: "Print help information",
963 },
964 ],
965 args: {
966 name: "theme",
967 isOptional: true,
968 generators: themesGenerator,
969 },
970 },
971 {
972 name: "invite",
973 description: "Invite friends to Fig",
974 options: [
975 {
976 name: ["-h", "--help"],
977 description: "Print help information",
978 },
979 ],
980 },
981 {
982 name: "tweet",
983 description: "Tweet about Fig",
984 options: [
985 {
986 name: ["-h", "--help"],
987 description: "Print help information",
988 },
989 ],
990 icon: "fig://icon?type=twitter",
991 },
992 {
993 name: "issue",
994 description: "Create a new Github issue",
995 options: [
996 {
997 name: ["-f", "--force"],
998 description: "Force issue creation",
999 },
1000 {
1001 name: ["-h", "--help"],
1002 description: "Print help information",
1003 },
1004 ],
1005 args: {
1006 name: "description",
1007 isOptional: true,
1008 },
1009 icon: "fig://icon?type=github",
1010 },
1011 {
1012 name: "login",
1013 description: "Login to Fig",
1014 options: [
1015 {
1016 name: ["-r", "--refresh"],
1017 description: "Manually refresh the auth token",
1018 },
1019 {
1020 name: ["-h", "--help"],
1021 description: "Print help information",
1022 },
1023 ],
1024 },
1025 {
1026 name: "logout",
1027 description: "Logout of Fig",
1028 options: [
1029 {
1030 name: ["-h", "--help"],
1031 description: "Print help information",
1032 },
1033 ],
1034 },
1035 {
1036 name: "user",
1037 description: "Details about the current user",
1038 options: [
1039 {
1040 name: ["-h", "--help"],
1041 description: "Print help information",
1042 },
1043 ],
1044 },
1045 {
1046 name: "doctor",
1047 description: "Check Fig is properly configured",
1048 options: [
1049 {
1050 name: "--verbose",
1051 description: "Run all doctor tests, with no fixes",
1052 },
1053 {
1054 name: "--strict",
1055 description: "Error on warnings",
1056 },
1057 {
1058 name: ["-h", "--help"],
1059 description: "Print help information",
1060 },
1061 ],
1062 },
1063 {
1064 name: "completion",
1065 description: "Generate the completion spec for Fig",
1066 hidden: true,
1067 options: [
1068 {
1069 name: ["-h", "--help"],
1070 description: "Print help information",
1071 },
1072 ],
1073 args: {
1074 name: "shell",
1075 isOptional: true,
1076 suggestions: [
1077 {
1078 name: "bash",
1079 description: "Bash shell compleations",
1080 },
1081 {
1082 name: "fish",
1083 description: "Fish shell completions",
1084 },
1085 {
1086 name: "zsh",
1087 description: "Zsh shell completions",
1088 },
1089 {
1090 name: "fig",
1091 description: "Fig completion spec",
1092 },
1093 ],
1094 },
1095 },
1096 {
1097 name: ["internal", "_"],
1098 description: "Internal subcommands used for Fig",
1099 hidden: true,
1100 subcommands: [
1101 {
1102 name: "prompt-dotfiles-changed",
1103 description:
1104 "Prompt the user that the dotfiles have changes Also use for `fig source` internals",
1105 options: [
1106 {
1107 name: "--version",
1108 description: "Print version information",
1109 },
1110 {
1111 name: ["-h", "--help"],
1112 description: "Print help information",
1113 },
1114 ],
1115 },
1116 {
1117 name: "local-state",
1118 description: "Change the local-state file",
1119 subcommands: [
1120 {
1121 name: "init",
1122 description: "Reload the state listener",
1123 options: [
1124 {
1125 name: "--help",
1126 description: "Print help information",
1127 },
1128 {
1129 name: "--version",
1130 description: "Print version information",
1131 },
1132 ],
1133 },
1134 {
1135 name: "open",
1136 description: "Open the state file",
1137 options: [
1138 {
1139 name: "--help",
1140 description: "Print help information",
1141 },
1142 {
1143 name: "--version",
1144 description: "Print version information",
1145 },
1146 ],
1147 },
1148 ],
1149 options: [
1150 {
1151 name: "--version",
1152 description: "Print version information",
1153 },
1154 {
1155 name: ["-d", "--delete"],
1156 description: "Delete the state",
1157 },
1158 {
1159 name: ["-h", "--help"],
1160 description: "Print help information",
1161 },
1162 ],
1163 args: [
1164 {
1165 name: "key",
1166 isOptional: true,
1167 },
1168 {
1169 name: "value",
1170 isOptional: true,
1171 },
1172 ],
1173 },
1174 {
1175 name: "callback",
1176 description: "Callback used for the internal psudoterminal",
1177 options: [
1178 {
1179 name: "--version",
1180 description: "Print version information",
1181 },
1182 {
1183 name: ["-h", "--help"],
1184 description: "Print help information",
1185 },
1186 ],
1187 args: [
1188 {
1189 name: "handler-id",
1190 },
1191 {
1192 name: "filename",
1193 isOptional: true,
1194 },
1195 {
1196 name: "exit-code",
1197 isOptional: true,
1198 },
1199 ],
1200 },
1201 {
1202 name: "install",
1203 description: "Install fig cli",
1204 options: [
1205 {
1206 name: "--version",
1207 description: "Print version information",
1208 },
1209 {
1210 name: "--daemon",
1211 description: "Install only the daemon",
1212 exclusiveOn: ["--dotfiles"],
1213 },
1214 {
1215 name: "--dotfiles",
1216 description: "Install only the shell integrations",
1217 },
1218 {
1219 name: "--no-confirm",
1220 description: "Don't confirm automatic installation",
1221 },
1222 {
1223 name: "--force",
1224 description: "Force installation of fig",
1225 },
1226 {
1227 name: ["-h", "--help"],
1228 description: "Print help information",
1229 },
1230 ],
1231 },
1232 {
1233 name: "uninstall",
1234 description: "Uninstall fig cli",
1235 options: [
1236 {
1237 name: "--version",
1238 description: "Print version information",
1239 },
1240 {
1241 name: "--daemon",
1242 description: "Uninstall only the daemon",
1243 },
1244 {
1245 name: "--dotfiles",
1246 description: "Uninstall only the shell integrations",
1247 },
1248 {
1249 name: "--binary",
1250 description: "Uninstall only the binary",
1251 },
1252 {
1253 name: ["-h", "--help"],
1254 description: "Print help information",
1255 },
1256 ],
1257 },
1258 {
1259 name: "warn-user-when-uninstalling-incorrectly",
1260 description: "Notify the user that they are uninstalling incorrectly",
1261 options: [
1262 {
1263 name: "--version",
1264 description: "Print version information",
1265 },
1266 {
1267 name: ["-h", "--help"],
1268 description: "Print help information",
1269 },
1270 ],
1271 },
1272 {
1273 name: "animation",
1274 options: [
1275 {
1276 name: ["-f", "--filename"],
1277 args: {
1278 name: "filename",
1279 isOptional: true,
1280 },
1281 },
1282 {
1283 name: ["-r", "--rate"],
1284 args: {
1285 name: "rate",
1286 isOptional: true,
1287 },
1288 },
1289 {
1290 name: ["-b", "--before-text"],
1291 args: {
1292 name: "before-text",
1293 isOptional: true,
1294 },
1295 },
1296 {
1297 name: ["-a", "--after-text"],
1298 args: {
1299 name: "after-text",
1300 isOptional: true,
1301 },
1302 },
1303 {
1304 name: "--version",
1305 description: "Print version information",
1306 },
1307 {
1308 name: ["-h", "--help"],
1309 description: "Print help information",
1310 },
1311 ],
1312 },
1313 {
1314 name: "get-shell",
1315 options: [
1316 {
1317 name: "--version",
1318 description: "Print version information",
1319 },
1320 {
1321 name: ["-h", "--help"],
1322 description: "Print help information",
1323 },
1324 ],
1325 },
1326 {
1327 name: "help",
1328 description:
1329 "Print this message or the help of the given subcommand(s)",
1330 options: [
1331 {
1332 name: "--version",
1333 description: "Print version information",
1334 },
1335 {
1336 name: ["-h", "--help"],
1337 description: "Print help information",
1338 },
1339 ],
1340 args: {
1341 name: "subcommand",
1342 isOptional: true,
1343 },
1344 },
1345 ],
1346 options: [
1347 {
1348 name: ["-h", "--help"],
1349 description: "Print help information",
1350 },
1351 ],
1352 },
1353 {
1354 name: "launch",
1355 description: "Launch the Fig desktop app",
1356 options: [
1357 {
1358 name: ["-h", "--help"],
1359 description: "Print help information",
1360 },
1361 ],
1362 },
1363 {
1364 name: "quit",
1365 description: "Quit the Fig desktop app",
1366 options: [
1367 {
1368 name: ["-h", "--help"],
1369 description: "Print help information",
1370 },
1371 ],
1372 },
1373 {
1374 name: "restart",
1375 description: "Restart the Fig desktop app",
1376 options: [
1377 {
1378 name: ["-h", "--help"],
1379 description: "Print help information",
1380 },
1381 ],
1382 args: {
1383 name: "process",
1384 isOptional: true,
1385 suggestions: [
1386 {
1387 name: "daemon",
1388 description: "Daemon process",
1389 },
1390 {
1391 name: "app",
1392 description: "Fig process",
1393 },
1394 ],
1395 },
1396 },
1397 {
1398 name: "alpha",
1399 description: "(LEGACY) Old way to launch mission control",
1400 hidden: true,
1401 options: [
1402 {
1403 name: ["-h", "--help"],
1404 description: "Print help information",
1405 },
1406 ],
1407 },
1408 {
1409 name: "onboarding",
1410 description: "Run the Fig tutorial",
1411 options: [
1412 {
1413 name: ["-h", "--help"],
1414 description: "Print help information",
1415 },
1416 ],
1417 },
1418 {
1419 name: "plugins",
1420 subcommands: [
1421 {
1422 name: "sync",
1423 description:
1424 "Sync the current plugins (this will not update plugins that are already installed)",
1425 options: [
1426 {
1427 name: "--version",
1428 description: "Print version information",
1429 },
1430 {
1431 name: ["-h", "--help"],
1432 description: "Print help information",
1433 },
1434 ],
1435 },
1436 {
1437 name: "update",
1438 description: "Update the installed plugins",
1439 options: [
1440 {
1441 name: "--version",
1442 description: "Print version information",
1443 },
1444 {
1445 name: ["-h", "--help"],
1446 description: "Print help information",
1447 },
1448 ],
1449 },
1450 {
1451 name: "add",
1452 description: "Install a specific plugin from the plugin store",
1453 options: [
1454 {
1455 name: "--version",
1456 description: "Print version information",
1457 },
1458 {
1459 name: ["-h", "--help"],
1460 description: "Print help information",
1461 },
1462 ],
1463 args: {
1464 name: "plugin",
1465 generators: pluginsGenerator({ installed: false }),
1466 },
1467 },
1468 {
1469 name: "remove",
1470 description: "Uninstall a specific plugin",
1471 options: [
1472 {
1473 name: "--version",
1474 description: "Print version information",
1475 },
1476 {
1477 name: ["-h", "--help"],
1478 description: "Print help information",
1479 },
1480 ],
1481 args: {
1482 name: "plugin",
1483 generators: pluginsGenerator({ installed: true }),
1484 },
1485 },
1486 {
1487 name: "list",
1488 description: "List all plugins available in the plugin store",
1489 options: [
1490 {
1491 name: ["-f", "--format"],
1492 description: "The output format",
1493 args: {
1494 name: "format",
1495 isOptional: true,
1496 suggestions: [
1497 {
1498 name: "plain",
1499 description: "Outputs the results as markdown",
1500 },
1501 {
1502 name: "json",
1503 description: "Outputs the results as JSON",
1504 },
1505 ],
1506 },
1507 },
1508 {
1509 name: "--version",
1510 description: "Print version information",
1511 },
1512 {
1513 name: ["-i", "--installed"],
1514 description: "Only list plugins that are installed",
1515 },
1516 {
1517 name: ["-h", "--help"],
1518 description: "Print help information",
1519 },
1520 ],
1521 },
1522 {
1523 name: "help",
1524 description:
1525 "Print this message or the help of the given subcommand(s)",
1526 options: [
1527 {
1528 name: "--version",
1529 description: "Print version information",
1530 },
1531 {
1532 name: ["-h", "--help"],
1533 description: "Print help information",
1534 },
1535 ],
1536 args: {
1537 name: "subcommand",
1538 isOptional: true,
1539 },
1540 },
1541 ],
1542 options: [
1543 {
1544 name: ["-h", "--help"],
1545 description: "Print help information",
1546 },
1547 ],
1548 },
1549 {
1550 name: "app:running",
1551 description: "(LEGACY) Old hook that was being used somewhere",
1552 hidden: true,
1553 options: [
1554 {
1555 name: ["-h", "--help"],
1556 description: "Print help information",
1557 },
1558 ],
1559 },
1560 {
1561 name: "bg:ssh",
1562 description: "(LEGACY) Old ssh hook that might be in ~/.ssh/config",
1563 hidden: true,
1564 options: [
1565 {
1566 name: ["-h", "--help"],
1567 description: "Print help information",
1568 },
1569 ],
1570 },
1571 {
1572 name: "help",
1573 description: "Print this message or the help of the given subcommand(s)",
1574 args: {
1575 name: "subcommand",
1576 isOptional: true,
1577 },
1578 },
1579 ],
1580 options: [
1581 {
1582 name: ["-h", "--help"],
1583 description: "Print help information",
1584 },
1585 {
1586 name: ["-V", "--version"],
1587 description: "Print version information",
1588 },
1589 ],
1590 };
1591
1592 const versions: Fig.VersionDiffMap = {};
1593
1594 versions["1.3.0"] = {};
1595
1596 versions["1.3.1"] = {
1597 subcommands: [
1598 {
1599 name: "debug",
1600 subcommands: [
1601 {
1602 name: "shell-integrations",
1603 remove: true,
1604 },
1605 ],
1606 },
1607 {
1608 name: "settings",
1609 subcommands: [
1610 {
1611 name: "all",
1612 description: "List all the settings",
1613 options: [
1614 {
1615 name: ["-f", "--format"],
1616 description: "Format of the output",
1617 args: {
1618 name: "format",
1619 isOptional: true,
1620 suggestions: [
1621 {
1622 name: "plain",
1623 description: "Outputs the results as markdown",
1624 },
1625 {
1626 name: "json",
1627 description: "Outputs the results as JSON",
1628 },
1629 {
1630 name: "json-pretty",
1631 description: "Outputs the results as pretty print JSON",
1632 },
1633 ],
1634 },
1635 },
1636 {
1637 name: "--version",
1638 description: "Print version information",
1639 },
1640 {
1641 name: ["-r", "--remote"],
1642 description: "List the remote settings",
1643 },
1644 {
1645 name: ["-h", "--help"],
1646 description: "Print help information",
1647 },
1648 ],
1649 },
1650 ],
1651 options: [
1652 {
1653 name: ["-f", "--format"],
1654 description: "Format of the output",
1655 args: {
1656 name: "format",
1657 isOptional: true,
1658 suggestions: [
1659 {
1660 name: "plain",
1661 description: "Outputs the results as markdown",
1662 },
1663 {
1664 name: "json",
1665 description: "Outputs the results as JSON",
1666 },
1667 {
1668 name: "json-pretty",
1669 description: "Outputs the results as pretty print JSON",
1670 },
1671 ],
1672 },
1673 },
1674 {
1675 name: ["-d", "--delete"],
1676 description: "Delete a value",
1677 },
1678 ],
1679 },
1680 {
1681 name: "install",
1682 options: [
1683 {
1684 name: "--daemon",
1685 exclusiveOn: ["--input-method"],
1686 },
1687 {
1688 name: "--dotfiles",
1689 exclusiveOn: ["--input-method"],
1690 },
1691 {
1692 name: "--input-method",
1693 description: "Prompt input method installation",
1694 exclusiveOn: ["--daemon", "--dotfiles"],
1695 },
1696 {
1697 name: "--ssh",
1698 description: "Install only the ssh integration",
1699 },
1700 ],
1701 },
1702 {
1703 name: "ssh",
1704 description: "Enable/disable fig SSH integration",
1705 subcommands: [
1706 {
1707 name: "enable",
1708 description: "Enable ssh integration",
1709 options: [
1710 {
1711 name: "--version",
1712 description: "Print version information",
1713 },
1714 {
1715 name: ["-h", "--help"],
1716 description: "Print help information",
1717 },
1718 ],
1719 },
1720 {
1721 name: "disable",
1722 description: "Disable ssh integration",
1723 options: [
1724 {
1725 name: "--version",
1726 description: "Print version information",
1727 },
1728 {
1729 name: ["-h", "--help"],
1730 description: "Print help information",
1731 },
1732 ],
1733 },
1734 {
1735 name: "help",
1736 description:
1737 "Print this message or the help of the given subcommand(s)",
1738 options: [
1739 {
1740 name: "--version",
1741 description: "Print version information",
1742 },
1743 {
1744 name: ["-h", "--help"],
1745 description: "Print help information",
1746 },
1747 ],
1748 args: {
1749 name: "subcommand",
1750 isOptional: true,
1751 },
1752 },
1753 ],
1754 options: [
1755 {
1756 name: ["-h", "--help"],
1757 description: "Print help information",
1758 },
1759 ],
1760 },
1761 {
1762 name: "diagnostic",
1763 options: [
1764 {
1765 name: ["-f", "--format"],
1766 args: {
1767 suggestions: [
1768 {
1769 name: "plain",
1770 description: "Outputs the results as markdown",
1771 },
1772 {
1773 name: "json",
1774 description: "Outputs the results as JSON",
1775 },
1776 {
1777 name: "json-pretty",
1778 description: "Outputs the results as pretty print JSON",
1779 },
1780 ],
1781 },
1782 },
1783 ],
1784 },
1785 {
1786 name: "init",
1787 options: [
1788 {
1789 name: "--rcfile",
1790 args: {
1791 name: "rcfile",
1792 isOptional: true,
1793 },
1794 },
1795 ],
1796 },
1797 {
1798 name: ["internal", "_"],
1799 subcommands: [
1800 {
1801 name: "local-state",
1802 subcommands: [
1803 {
1804 name: "all",
1805 description: "List all the settings",
1806 options: [
1807 {
1808 name: ["-f", "--format"],
1809 args: {
1810 name: "format",
1811 isOptional: true,
1812 suggestions: [
1813 {
1814 name: "plain",
1815 description: "Outputs the results as markdown",
1816 },
1817 {
1818 name: "json",
1819 description: "Outputs the results as JSON",
1820 },
1821 {
1822 name: "json-pretty",
1823 description: "Outputs the results as pretty print JSON",
1824 },
1825 ],
1826 },
1827 },
1828 {
1829 name: "--help",
1830 description: "Print help information",
1831 },
1832 {
1833 name: "--version",
1834 description: "Print version information",
1835 },
1836 ],
1837 },
1838 ],
1839 options: [
1840 {
1841 name: ["-f", "--format"],
1842 description: "Format of the output",
1843 args: {
1844 name: "format",
1845 isOptional: true,
1846 suggestions: [
1847 {
1848 name: "plain",
1849 description: "Outputs the results as markdown",
1850 },
1851 {
1852 name: "json",
1853 description: "Outputs the results as JSON",
1854 },
1855 {
1856 name: "json-pretty",
1857 description: "Outputs the results as pretty print JSON",
1858 },
1859 ],
1860 },
1861 },
1862 ],
1863 },
1864 {
1865 name: "install",
1866 options: [
1867 {
1868 name: "--daemon",
1869 exclusiveOn: ["--input-method"],
1870 },
1871 {
1872 name: "--dotfiles",
1873 exclusiveOn: ["--input-method"],
1874 },
1875 {
1876 name: "--input-method",
1877 description: "Prompt input method installation",
1878 exclusiveOn: ["--daemon", "--dotfiles"],
1879 },
1880 {
1881 name: "--ssh",
1882 description: "Install only the ssh integration",
1883 },
1884 ],
1885 },
1886 {
1887 name: "uninstall",
1888 options: [
1889 {
1890 name: "--ssh",
1891 description: "Uninstall only the ssh integration",
1892 },
1893 ],
1894 },
1895 ],
1896 },
1897 {
1898 name: "plugins",
1899 subcommands: [
1900 {
1901 name: "list",
1902 options: [
1903 {
1904 name: ["-f", "--format"],
1905 args: {
1906 suggestions: [
1907 {
1908 name: "plain",
1909 description: "Outputs the results as markdown",
1910 },
1911 {
1912 name: "json",
1913 description: "Outputs the results as JSON",
1914 },
1915 {
1916 name: "json-pretty",
1917 description: "Outputs the results as pretty print JSON",
1918 },
1919 ],
1920 },
1921 },
1922 ],
1923 },
1924 ],
1925 },
1926 {
1927 name: "man",
1928 description: "Open manual page",
1929 options: [
1930 {
1931 name: ["-h", "--help"],
1932 description: "Print help information",
1933 },
1934 ],
1935 args: {
1936 name: "command",
1937 isOptional: true,
1938 },
1939 },
1940 ],
1941 };
1942
1943 versions["1.4.0"] = {
1944 subcommands: [
1945 {
1946 name: "app",
1947 subcommands: [
1948 {
1949 name: "uninstall",
1950 options: [
1951 {
1952 name: "--user-data",
1953 description: "Remove configuration and data files",
1954 },
1955 {
1956 name: "--app-bundle",
1957 description: "Remove executable and",
1958 },
1959 {
1960 name: "--input-method",
1961 description: "Remove input method",
1962 },
1963 {
1964 name: "--terminal-integrations",
1965 description:
1966 "Remove terminal integrations (i.e. VSCode, iTerm2, etc.)",
1967 },
1968 {
1969 name: "--daemon",
1970 description: "Remove Fig daemon",
1971 },
1972 {
1973 name: "--dotfiles",
1974 description: "Remove dotfile shell integration",
1975 },
1976 {
1977 name: "--ssh",
1978 description: "Remove SSH integration",
1979 },
1980 {
1981 name: "--no-open",
1982 description: "Do not open the uninstallation page",
1983 },
1984 ],
1985 },
1986 ],
1987 },
1988 {
1989 name: "debug",
1990 subcommands: [
1991 {
1992 name: "dotfiles",
1993 description: "Debug dotfiles",
1994 options: [
1995 {
1996 name: "--version",
1997 description: "Print version information",
1998 },
1999 {
2000 name: "--disable",
2001 description: "Disable debug mode",
2002 },
2003 {
2004 name: ["-h", "--help"],
2005 description: "Print help information",
2006 },
2007 ],
2008 },
2009 ],
2010 },
2011 {
2012 name: "user",
2013 subcommands: [
2014 {
2015 name: "login",
2016 description: "Login to Fig",
2017 options: [
2018 {
2019 name: "--version",
2020 description: "Print version information",
2021 },
2022 {
2023 name: ["-r", "--refresh"],
2024 description: "Manually refresh the auth token",
2025 },
2026 {
2027 name: ["-h", "--help"],
2028 description: "Print help information",
2029 },
2030 ],
2031 },
2032 {
2033 name: "logout",
2034 description: "Logout of Fig",
2035 options: [
2036 {
2037 name: "--version",
2038 description: "Print version information",
2039 },
2040 {
2041 name: ["-h", "--help"],
2042 description: "Print help information",
2043 },
2044 ],
2045 },
2046 {
2047 name: "whoami",
2048 options: [
2049 {
2050 name: ["-f", "--format"],
2051 description: "Output format to use",
2052 args: {
2053 name: "format",
2054 isOptional: true,
2055 suggestions: [
2056 {
2057 name: "plain",
2058 description: "Outputs the results as markdown",
2059 },
2060 {
2061 name: "json",
2062 description: "Outputs the results as JSON",
2063 },
2064 {
2065 name: "json-pretty",
2066 description: "Outputs the results as pretty print JSON",
2067 },
2068 ],
2069 },
2070 },
2071 {
2072 name: "--version",
2073 description: "Print version information",
2074 },
2075 {
2076 name: ["-e", "--only-email"],
2077 description:
2078 "Only print the user's email address, this is quicker since it doesn't require a network request",
2079 },
2080 {
2081 name: ["-h", "--help"],
2082 description: "Print help information",
2083 },
2084 ],
2085 },
2086 {
2087 name: "tokens",
2088 subcommands: [
2089 {
2090 name: "new",
2091 options: [
2092 {
2093 name: "--expires-date",
2094 description:
2095 "The expiration date of the token in RFC3339 format",
2096 exclusiveOn: ["--expires-in"],
2097 args: {
2098 name: "expires-date",
2099 isOptional: true,
2100 },
2101 },
2102 {
2103 name: "--expires-in",
2104 description: 'The time till the token expires (e.g. "90d")',
2105 exclusiveOn: ["--expires-date"],
2106 args: {
2107 name: "expires-in",
2108 isOptional: true,
2109 },
2110 },
2111 {
2112 name: ["-t", "--team"],
2113 description: "The team namespace to create the token for",
2114 args: {
2115 name: "team",
2116 generators: teamsGenerators,
2117 },
2118 },
2119 {
2120 name: "--help",
2121 description: "Print help information",
2122 },
2123 {
2124 name: "--version",
2125 description: "Print version information",
2126 },
2127 ],
2128 args: {
2129 name: "name",
2130 },
2131 },
2132 {
2133 name: "list",
2134 options: [
2135 {
2136 name: ["-t", "--team"],
2137 description: "The team namespace to list the tokens for",
2138 exclusiveOn: ["-p", "--personal"],
2139 args: {
2140 name: "team",
2141 generators: teamsGenerators,
2142 },
2143 },
2144 {
2145 name: ["-f", "--format"],
2146 args: {
2147 name: "format",
2148 isOptional: true,
2149 suggestions: [
2150 {
2151 name: "plain",
2152 description: "Outputs the results as markdown",
2153 },
2154 {
2155 name: "json",
2156 description: "Outputs the results as JSON",
2157 },
2158 {
2159 name: "json-pretty",
2160 description: "Outputs the results as pretty print JSON",
2161 },
2162 ],
2163 },
2164 },
2165 {
2166 name: "--help",
2167 description: "Print help information",
2168 },
2169 {
2170 name: "--version",
2171 description: "Print version information",
2172 },
2173 {
2174 name: ["-p", "--personal"],
2175 description: "Only list tokens owned by the current user",
2176 exclusiveOn: ["-t", "--team"],
2177 },
2178 ],
2179 },
2180 {
2181 name: "revoke",
2182 options: [
2183 {
2184 name: ["-t", "--team"],
2185 description: "The team namespace to revoke the token for",
2186 args: {
2187 name: "team",
2188 generators: teamsGenerators,
2189 },
2190 },
2191 {
2192 name: "--help",
2193 description: "Print help information",
2194 },
2195 {
2196 name: "--version",
2197 description: "Print version information",
2198 },
2199 ],
2200 args: {
2201 name: "name",
2202 generators: tokensGenerators,
2203 },
2204 },
2205 ],
2206 options: [
2207 {
2208 name: "--version",
2209 description: "Print version information",
2210 },
2211 {
2212 name: ["-h", "--help"],
2213 description: "Print help information",
2214 },
2215 ],
2216 },
2217 {
2218 name: "help",
2219 description:
2220 "Print this message or the help of the given subcommand(s)",
2221 options: [
2222 {
2223 name: "--version",
2224 description: "Print version information",
2225 },
2226 {
2227 name: ["-h", "--help"],
2228 description: "Print help information",
2229 },
2230 ],
2231 args: {
2232 name: "subcommand",
2233 isOptional: true,
2234 },
2235 },
2236 ],
2237 },
2238 {
2239 name: "team",
2240 args: {
2241 name: "team",
2242 generators: teamsGenerators,
2243 isOptional: true,
2244 loadSpec: {
2245 name: "team",
2246 subcommands: [
2247 {
2248 name: "members",
2249 description: "List all members on a team",
2250 options: [
2251 {
2252 name: "--version",
2253 description: "Print version information",
2254 },
2255 {
2256 name: ["-h", "--help"],
2257 description: "Print help information",
2258 },
2259 ],
2260 },
2261 {
2262 name: "remove",
2263 description: "Remove a member from a team",
2264 options: [
2265 {
2266 name: "--version",
2267 description: "Print version information",
2268 },
2269 {
2270 name: ["-h", "--help"],
2271 description: "Print help information",
2272 },
2273 ],
2274 args: {
2275 name: "email",
2276 generators: membersGenerators,
2277 },
2278 },
2279 {
2280 name: "add",
2281 description: "Invite a member to a team",
2282 options: [
2283 {
2284 name: "--role",
2285 args: {
2286 name: "role",
2287 isOptional: true,
2288 suggestions: ["owner", "admin", "member"],
2289 },
2290 },
2291 {
2292 name: "--version",
2293 description: "Print version information",
2294 },
2295 {
2296 name: ["-h", "--help"],
2297 description: "Print help information",
2298 },
2299 ],
2300 args: {
2301 name: "email",
2302 },
2303 },
2304 {
2305 name: "invitations",
2306 description: "List pending invitations to a team",
2307 options: [
2308 {
2309 name: "--version",
2310 description: "Print version information",
2311 },
2312 {
2313 name: ["-h", "--help"],
2314 description: "Print help information",
2315 },
2316 ],
2317 },
2318 {
2319 name: "revoke",
2320 description: "Revoke an invitation to a team",
2321 options: [
2322 {
2323 name: "--version",
2324 description: "Print version information",
2325 },
2326 {
2327 name: ["-h", "--help"],
2328 description: "Print help information",
2329 },
2330 ],
2331 args: {
2332 name: "email",
2333 generators: invitationsGenerators,
2334 },
2335 },
2336 {
2337 name: "help",
2338 description:
2339 "Print this message or the help of the given subcommand(s)",
2340 options: [
2341 {
2342 name: "--version",
2343 description: "Print version information",
2344 },
2345 {
2346 name: ["-h", "--help"],
2347 description: "Print help information",
2348 },
2349 ],
2350 args: {
2351 name: "subcommand",
2352 isOptional: true,
2353 },
2354 },
2355 ],
2356 },
2357 },
2358 options: [
2359 {
2360 name: ["-f", "--format"],
2361 args: {
2362 name: "format",
2363 isOptional: true,
2364 suggestions: [
2365 {
2366 name: "plain",
2367 description: "Outputs the results as markdown",
2368 },
2369 {
2370 name: "json",
2371 description: "Outputs the results as JSON",
2372 },
2373 {
2374 name: "json-pretty",
2375 description: "Outputs the results as pretty print JSON",
2376 },
2377 ],
2378 },
2379 },
2380 {
2381 name: "--list",
2382 exclusiveOn: ["--new", "--delete"],
2383 },
2384 {
2385 name: "--new",
2386 exclusiveOn: ["--list", "--delete"],
2387 },
2388 {
2389 name: "--delete",
2390 exclusiveOn: ["--list", "--new"],
2391 },
2392 {
2393 name: ["-h", "--help"],
2394 description: "Print help information",
2395 },
2396 ],
2397 },
2398 {
2399 name: ["internal", "_"],
2400 subcommands: [
2401 {
2402 name: "hostname",
2403 options: [
2404 {
2405 name: "--version",
2406 description: "Print version information",
2407 },
2408 {
2409 name: ["-h", "--help"],
2410 description: "Print help information",
2411 },
2412 ],
2413 },
2414 ],
2415 },
2416 ],
2417 };
2418
2419 versions["1.4.1"] = {
2420 subcommands: [
2421 {
2422 name: "app",
2423 subcommands: [
2424 {
2425 name: "install",
2426 options: [
2427 {
2428 name: "--version",
2429 remove: true,
2430 },
2431 ],
2432 },
2433 {
2434 name: "onboarding",
2435 options: [
2436 {
2437 name: "--version",
2438 remove: true,
2439 },
2440 ],
2441 },
2442 {
2443 name: "running",
2444 options: [
2445 {
2446 name: "--version",
2447 remove: true,
2448 },
2449 ],
2450 },
2451 {
2452 name: "launch",
2453 options: [
2454 {
2455 name: "--version",
2456 remove: true,
2457 },
2458 ],
2459 },
2460 {
2461 name: "restart",
2462 options: [
2463 {
2464 name: "--version",
2465 remove: true,
2466 },
2467 ],
2468 },
2469 {
2470 name: "quit",
2471 options: [
2472 {
2473 name: "--version",
2474 remove: true,
2475 },
2476 ],
2477 },
2478 {
2479 name: "set-path",
2480 options: [
2481 {
2482 name: "--version",
2483 remove: true,
2484 },
2485 ],
2486 },
2487 {
2488 name: "uninstall",
2489 options: [
2490 {
2491 name: "--user-data",
2492 isRepeatable: true,
2493 },
2494 {
2495 name: "--app-bundle",
2496 isRepeatable: true,
2497 },
2498 {
2499 name: "--input-method",
2500 isRepeatable: true,
2501 },
2502 {
2503 name: "--terminal-integrations",
2504 isRepeatable: true,
2505 },
2506 {
2507 name: "--daemon",
2508 isRepeatable: true,
2509 },
2510 {
2511 name: "--dotfiles",
2512 isRepeatable: true,
2513 },
2514 {
2515 name: "--ssh",
2516 isRepeatable: true,
2517 },
2518 {
2519 name: "--no-open",
2520 isRepeatable: true,
2521 },
2522 {
2523 name: "--version",
2524 remove: true,
2525 },
2526 ],
2527 },
2528 {
2529 name: "prompts",
2530 options: [
2531 {
2532 name: "--version",
2533 remove: true,
2534 },
2535 ],
2536 },
2537 ],
2538 },
2539 {
2540 name: "hook",
2541 subcommands: [
2542 {
2543 name: "editbuffer",
2544 options: [
2545 {
2546 name: "--version",
2547 remove: true,
2548 },
2549 ],
2550 },
2551 {
2552 name: "hide",
2553 options: [
2554 {
2555 name: "--version",
2556 remove: true,
2557 },
2558 ],
2559 },
2560 {
2561 name: "init",
2562 options: [
2563 {
2564 name: "--version",
2565 remove: true,
2566 },
2567 ],
2568 },
2569 {
2570 name: "integration-ready",
2571 options: [
2572 {
2573 name: "--version",
2574 remove: true,
2575 },
2576 ],
2577 },
2578 {
2579 name: "keyboard-focus-changed",
2580 options: [
2581 {
2582 name: "--version",
2583 remove: true,
2584 },
2585 ],
2586 },
2587 {
2588 name: "pre-exec",
2589 options: [
2590 {
2591 name: "--version",
2592 remove: true,
2593 },
2594 ],
2595 },
2596 {
2597 name: "prompt",
2598 options: [
2599 {
2600 name: "--version",
2601 remove: true,
2602 },
2603 ],
2604 },
2605 {
2606 name: "ssh",
2607 options: [
2608 {
2609 name: "--prompt",
2610 isRepeatable: true,
2611 },
2612 {
2613 name: "--version",
2614 remove: true,
2615 },
2616 ],
2617 },
2618 {
2619 name: "event",
2620 remove: true,
2621 },
2622 ],
2623 },
2624 {
2625 name: "debug",
2626 subcommands: [
2627 {
2628 name: "app",
2629 options: [
2630 {
2631 name: "--version",
2632 remove: true,
2633 },
2634 ],
2635 },
2636 {
2637 name: "dotfiles",
2638 options: [
2639 {
2640 name: "--disable",
2641 isRepeatable: true,
2642 },
2643 {
2644 name: "--version",
2645 remove: true,
2646 },
2647 ],
2648 },
2649 {
2650 name: "build",
2651 options: [
2652 {
2653 name: "--version",
2654 remove: true,
2655 },
2656 ],
2657 },
2658 {
2659 name: "autocomplete-window",
2660 options: [
2661 {
2662 name: "--version",
2663 remove: true,
2664 },
2665 ],
2666 },
2667 {
2668 name: "logs",
2669 options: [
2670 {
2671 name: "--version",
2672 remove: true,
2673 },
2674 ],
2675 args: {
2676 isVariadic: true,
2677 },
2678 },
2679 {
2680 name: "ime",
2681 options: [
2682 {
2683 name: "--version",
2684 remove: true,
2685 },
2686 ],
2687 },
2688 {
2689 name: "prompt-accessibility",
2690 options: [
2691 {
2692 name: "--version",
2693 remove: true,
2694 },
2695 ],
2696 },
2697 {
2698 name: "sample",
2699 options: [
2700 {
2701 name: "--version",
2702 remove: true,
2703 },
2704 ],
2705 },
2706 {
2707 name: "unix-socket",
2708 options: [
2709 {
2710 name: "--version",
2711 remove: true,
2712 },
2713 ],
2714 },
2715 {
2716 name: "verify-codesign",
2717 options: [
2718 {
2719 name: "--version",
2720 remove: true,
2721 },
2722 ],
2723 },
2724 {
2725 name: "accessibility",
2726 options: [
2727 {
2728 name: "--version",
2729 remove: true,
2730 },
2731 ],
2732 },
2733 ],
2734 },
2735 {
2736 name: "settings",
2737 subcommands: [
2738 {
2739 name: "init",
2740 options: [
2741 {
2742 name: "--version",
2743 remove: true,
2744 },
2745 ],
2746 },
2747 {
2748 name: "docs",
2749 options: [
2750 {
2751 name: "--version",
2752 remove: true,
2753 },
2754 ],
2755 },
2756 {
2757 name: "open",
2758 options: [
2759 {
2760 name: "--version",
2761 remove: true,
2762 },
2763 ],
2764 },
2765 {
2766 name: "sync",
2767 options: [
2768 {
2769 name: "--version",
2770 remove: true,
2771 },
2772 ],
2773 },
2774 {
2775 name: "all",
2776 options: [
2777 {
2778 name: ["-f", "--format"],
2779 isRepeatable: true,
2780 },
2781 {
2782 name: ["-r", "--remote"],
2783 isRepeatable: true,
2784 },
2785 {
2786 name: "--version",
2787 remove: true,
2788 },
2789 ],
2790 },
2791 ],
2792 options: [
2793 {
2794 name: ["-f", "--format"],
2795 isRepeatable: true,
2796 },
2797 {
2798 name: ["-d", "--delete"],
2799 isRepeatable: true,
2800 },
2801 ],
2802 },
2803 {
2804 name: "tips",
2805 subcommands: [
2806 {
2807 name: "enable",
2808 options: [
2809 {
2810 name: "--version",
2811 remove: true,
2812 },
2813 ],
2814 },
2815 {
2816 name: "disable",
2817 options: [
2818 {
2819 name: "--version",
2820 remove: true,
2821 },
2822 ],
2823 },
2824 {
2825 name: "reset",
2826 options: [
2827 {
2828 name: "--version",
2829 remove: true,
2830 },
2831 ],
2832 },
2833 {
2834 name: "prompt",
2835 options: [
2836 {
2837 name: "--version",
2838 remove: true,
2839 },
2840 ],
2841 },
2842 ],
2843 },
2844 {
2845 name: "install",
2846 options: [
2847 {
2848 name: "--daemon",
2849 isRepeatable: true,
2850 },
2851 {
2852 name: "--dotfiles",
2853 isRepeatable: true,
2854 },
2855 {
2856 name: "--input-method",
2857 isRepeatable: true,
2858 },
2859 {
2860 name: "--no-confirm",
2861 isRepeatable: true,
2862 },
2863 {
2864 name: "--force",
2865 isRepeatable: true,
2866 },
2867 {
2868 name: "--ssh",
2869 isRepeatable: true,
2870 },
2871 ],
2872 },
2873 {
2874 name: "ssh",
2875 subcommands: [
2876 {
2877 name: "enable",
2878 options: [
2879 {
2880 name: "--version",
2881 remove: true,
2882 },
2883 ],
2884 },
2885 {
2886 name: "disable",
2887 options: [
2888 {
2889 name: "--version",
2890 remove: true,
2891 },
2892 ],
2893 },
2894 ],
2895 },
2896 {
2897 name: "update",
2898 options: [
2899 {
2900 name: ["-y", "--no-confirm"],
2901 isRepeatable: true,
2902 },
2903 ],
2904 },
2905 {
2906 name: "diagnostic",
2907 options: [
2908 {
2909 name: ["-f", "--format"],
2910 isRepeatable: true,
2911 },
2912 {
2913 name: "--force",
2914 isRepeatable: true,
2915 },
2916 ],
2917 },
2918 {
2919 name: "init",
2920 options: [
2921 {
2922 name: "--rcfile",
2923 isRepeatable: true,
2924 },
2925 ],
2926 },
2927 {
2928 name: "theme",
2929 options: [
2930 {
2931 name: "--list",
2932 exclusiveOn: ["--folder"],
2933 isRepeatable: true,
2934 },
2935 {
2936 name: "--folder",
2937 exclusiveOn: ["--list"],
2938 isRepeatable: true,
2939 },
2940 ],
2941 },
2942 {
2943 name: "issue",
2944 options: [
2945 {
2946 name: ["-f", "--force"],
2947 isRepeatable: true,
2948 },
2949 ],
2950 args: {
2951 isVariadic: true,
2952 },
2953 },
2954 {
2955 name: "login",
2956 options: [
2957 {
2958 name: ["-r", "--refresh"],
2959 isRepeatable: true,
2960 },
2961 {
2962 name: "--hard-refresh",
2963 description: "Manually refresh the auth token",
2964 isRepeatable: true,
2965 },
2966 ],
2967 },
2968 {
2969 name: "user",
2970 subcommands: [
2971 {
2972 name: "login",
2973 options: [
2974 {
2975 name: ["-r", "--refresh"],
2976 isRepeatable: true,
2977 },
2978 {
2979 name: "--hard-refresh",
2980 description: "Manually refresh the auth token",
2981 isRepeatable: true,
2982 },
2983 {
2984 name: "--version",
2985 remove: true,
2986 },
2987 ],
2988 },
2989 {
2990 name: "logout",
2991 options: [
2992 {
2993 name: "--version",
2994 remove: true,
2995 },
2996 ],
2997 },
2998 {
2999 name: "whoami",
3000 options: [
3001 {
3002 name: ["-f", "--format"],
3003 isRepeatable: true,
3004 },
3005 {
3006 name: ["-e", "--only-email"],
3007 isRepeatable: true,
3008 },
3009 {
3010 name: "--version",
3011 remove: true,
3012 },
3013 ],
3014 },
3015 {
3016 name: "tokens",
3017 subcommands: [
3018 {
3019 name: "new",
3020 options: [
3021 {
3022 name: "--expires-date",
3023 isRepeatable: true,
3024 },
3025 {
3026 name: "--expires-in",
3027 isRepeatable: true,
3028 },
3029 {
3030 name: ["-t", "--team"],
3031 isRepeatable: true,
3032 },
3033 {
3034 name: "--version",
3035 remove: true,
3036 },
3037 ],
3038 },
3039 {
3040 name: "list",
3041 options: [
3042 {
3043 name: ["-t", "--team"],
3044 isRepeatable: true,
3045 },
3046 {
3047 name: ["-f", "--format"],
3048 isRepeatable: true,
3049 },
3050 {
3051 name: ["-p", "--personal"],
3052 isRepeatable: true,
3053 },
3054 {
3055 name: "--version",
3056 remove: true,
3057 },
3058 ],
3059 },
3060 {
3061 name: "revoke",
3062 options: [
3063 {
3064 name: ["-t", "--team"],
3065 isRepeatable: true,
3066 },
3067 {
3068 name: "--version",
3069 remove: true,
3070 },
3071 ],
3072 },
3073 {
3074 name: "validate",
3075 description: "Validate a token is valid",
3076 options: [
3077 {
3078 name: ["-h", "--help"],
3079 description: "Print help information",
3080 },
3081 ],
3082 args: {
3083 name: "token",
3084 },
3085 },
3086 {
3087 name: "help",
3088 description:
3089 "Print this message or the help of the given subcommand(s)",
3090 args: {
3091 name: "subcommand",
3092 isOptional: true,
3093 },
3094 },
3095 ],
3096 options: [
3097 {
3098 name: "--version",
3099 remove: true,
3100 },
3101 ],
3102 },
3103 ],
3104 },
3105 {
3106 name: "team",
3107 subcommands: [
3108 {
3109 name: "members",
3110 options: [
3111 {
3112 name: "--version",
3113 remove: true,
3114 },
3115 ],
3116 },
3117 {
3118 name: "remove",
3119 options: [
3120 {
3121 name: "--version",
3122 remove: true,
3123 },
3124 ],
3125 },
3126 {
3127 name: "add",
3128 options: [
3129 {
3130 name: "--role",
3131 isRepeatable: true,
3132 },
3133 {
3134 name: "--version",
3135 remove: true,
3136 },
3137 ],
3138 },
3139 {
3140 name: "invitations",
3141 options: [
3142 {
3143 name: "--version",
3144 remove: true,
3145 },
3146 ],
3147 },
3148 {
3149 name: "revoke",
3150 options: [
3151 {
3152 name: "--version",
3153 remove: true,
3154 },
3155 ],
3156 },
3157 ],
3158 options: [
3159 {
3160 name: ["-f", "--format"],
3161 isRepeatable: true,
3162 },
3163 {
3164 name: "--list",
3165 isRepeatable: true,
3166 },
3167 {
3168 name: "--new",
3169 isRepeatable: true,
3170 },
3171 {
3172 name: "--delete",
3173 isRepeatable: true,
3174 },
3175 ],
3176 },
3177 {
3178 name: "doctor",
3179 options: [
3180 {
3181 name: "--verbose",
3182 isRepeatable: true,
3183 },
3184 {
3185 name: "--strict",
3186 isRepeatable: true,
3187 },
3188 ],
3189 },
3190 {
3191 name: "completion",
3192 args: {
3193 suggestions: [
3194 {
3195 name: "bash",
3196 description: "Bash shell completions",
3197 },
3198 {
3199 name: "fish",
3200 description: "Fish shell completions",
3201 },
3202 {
3203 name: "zsh",
3204 description: "Zsh shell completions",
3205 },
3206 {
3207 name: "fig",
3208 description: "Fig completion spec",
3209 },
3210 ],
3211 },
3212 },
3213 {
3214 name: ["internal", "_"],
3215 subcommands: [
3216 {
3217 name: "prompt-dotfiles-changed",
3218 options: [
3219 {
3220 name: "--version",
3221 remove: true,
3222 },
3223 ],
3224 },
3225 {
3226 name: "local-state",
3227 subcommands: [
3228 {
3229 name: "init",
3230 options: [
3231 {
3232 name: "--version",
3233 remove: true,
3234 },
3235 ],
3236 },
3237 {
3238 name: "open",
3239 options: [
3240 {
3241 name: "--version",
3242 remove: true,
3243 },
3244 ],
3245 },
3246 {
3247 name: "all",
3248 options: [
3249 {
3250 name: ["-f", "--format"],
3251 isRepeatable: true,
3252 },
3253 {
3254 name: "--version",
3255 remove: true,
3256 },
3257 ],
3258 },
3259 {
3260 name: "help",
3261 description:
3262 "Print this message or the help of the given subcommand(s)",
3263 args: {
3264 name: "subcommand",
3265 isOptional: true,
3266 },
3267 },
3268 ],
3269 options: [
3270 {
3271 name: ["-f", "--format"],
3272 isRepeatable: true,
3273 },
3274 {
3275 name: ["-d", "--delete"],
3276 isRepeatable: true,
3277 },
3278 {
3279 name: "--version",
3280 remove: true,
3281 },
3282 ],
3283 },
3284 {
3285 name: "callback",
3286 options: [
3287 {
3288 name: "--version",
3289 remove: true,
3290 },
3291 ],
3292 },
3293 {
3294 name: "install",
3295 options: [
3296 {
3297 name: "--daemon",
3298 isRepeatable: true,
3299 },
3300 {
3301 name: "--dotfiles",
3302 isRepeatable: true,
3303 },
3304 {
3305 name: "--input-method",
3306 isRepeatable: true,
3307 },
3308 {
3309 name: "--no-confirm",
3310 isRepeatable: true,
3311 },
3312 {
3313 name: "--force",
3314 isRepeatable: true,
3315 },
3316 {
3317 name: "--ssh",
3318 isRepeatable: true,
3319 },
3320 {
3321 name: "--version",
3322 remove: true,
3323 },
3324 ],
3325 },
3326 {
3327 name: "install-ibus",
3328 options: [
3329 {
3330 name: ["-h", "--help"],
3331 description: "Print help information",
3332 },
3333 ],
3334 args: {
3335 name: "fig-ibus-engine-location",
3336 },
3337 },
3338 {
3339 name: "uninstall",
3340 options: [
3341 {
3342 name: "--daemon",
3343 isRepeatable: true,
3344 },
3345 {
3346 name: "--dotfiles",
3347 isRepeatable: true,
3348 },
3349 {
3350 name: "--binary",
3351 isRepeatable: true,
3352 },
3353 {
3354 name: "--ssh",
3355 isRepeatable: true,
3356 },
3357 {
3358 name: "--version",
3359 remove: true,
3360 },
3361 ],
3362 },
3363 {
3364 name: "get-shell",
3365 options: [
3366 {
3367 name: "--version",
3368 remove: true,
3369 },
3370 ],
3371 },
3372 {
3373 name: "hostname",
3374 options: [
3375 {
3376 name: "--version",
3377 remove: true,
3378 },
3379 ],
3380 },
3381 {
3382 name: "should-figterm-launch",
3383 options: [
3384 {
3385 name: ["-h", "--help"],
3386 description: "Print help information",
3387 },
3388 ],
3389 },
3390 {
3391 name: "event",
3392 options: [
3393 {
3394 name: "--name",
3395 description: "Name of the event",
3396 isRepeatable: true,
3397 args: {
3398 name: "name",
3399 },
3400 },
3401 {
3402 name: "--payload",
3403 description: "Payload of the event as a JSON string",
3404 isRepeatable: true,
3405 args: {
3406 name: "payload",
3407 isOptional: true,
3408 },
3409 },
3410 {
3411 name: "--apps",
3412 description: "Apps to send the event to",
3413 isRepeatable: true,
3414 args: {
3415 name: "apps",
3416 isOptional: true,
3417 },
3418 },
3419 {
3420 name: ["-h", "--help"],
3421 description: "Print help information",
3422 },
3423 ],
3424 },
3425 {
3426 name: "auth-token",
3427 options: [
3428 {
3429 name: ["-h", "--help"],
3430 description: "Print help information",
3431 },
3432 ],
3433 },
3434 {
3435 name: "request",
3436 options: [
3437 {
3438 name: "--route",
3439 isRepeatable: true,
3440 args: {
3441 name: "route",
3442 },
3443 },
3444 {
3445 name: "--method",
3446 isRepeatable: true,
3447 args: {
3448 name: "method",
3449 },
3450 },
3451 {
3452 name: "--body",
3453 isRepeatable: true,
3454 args: {
3455 name: "body",
3456 isOptional: true,
3457 },
3458 },
3459 {
3460 name: ["-h", "--help"],
3461 description: "Print help information",
3462 },
3463 ],
3464 },
3465 {
3466 name: "warn-user-when-uninstalling-incorrectly",
3467 remove: true,
3468 },
3469 {
3470 name: "animation",
3471 remove: true,
3472 },
3473 ],
3474 },
3475 {
3476 name: "plugins",
3477 subcommands: [
3478 {
3479 name: "sync",
3480 options: [
3481 {
3482 name: "--version",
3483 remove: true,
3484 },
3485 ],
3486 },
3487 {
3488 name: "update",
3489 options: [
3490 {
3491 name: "--version",
3492 remove: true,
3493 },
3494 ],
3495 },
3496 {
3497 name: "add",
3498 options: [
3499 {
3500 name: "--version",
3501 remove: true,
3502 },
3503 ],
3504 },
3505 {
3506 name: "remove",
3507 options: [
3508 {
3509 name: "--version",
3510 remove: true,
3511 },
3512 ],
3513 },
3514 {
3515 name: "list",
3516 options: [
3517 {
3518 name: ["-f", "--format"],
3519 isRepeatable: true,
3520 },
3521 {
3522 name: ["-i", "--installed"],
3523 isRepeatable: true,
3524 },
3525 {
3526 name: "--version",
3527 remove: true,
3528 },
3529 ],
3530 },
3531 ],
3532 },
3533 {
3534 name: "man",
3535 args: {
3536 isVariadic: true,
3537 },
3538 },
3539 {
3540 name: ["run", "r", "workflow", "workflows", "flow", "flows"],
3541 description: "Search for and execute workflows",
3542 filterStrategy: "fuzzy",
3543 options: [
3544 {
3545 name: ["-h", "--help"],
3546 priority: 20,
3547 description: "Print help information",
3548 },
3549 ],
3550 generateSpec: workflowsSpecGenerator,
3551 },
3552 {
3553 name: "bg:tmux",
3554 description: "(LEGACY) Old tmux hook that might be in ~/.tmux.conf",
3555 hidden: true,
3556 options: [
3557 {
3558 name: ["-h", "--help"],
3559 description: "Print help information",
3560 },
3561 ],
3562 args: {
3563 name: "args",
3564 isVariadic: true,
3565 isOptional: true,
3566 },
3567 },
3568 ],
3569 };
3570
3571 versions["1.4.3"] = {
3572 subcommands: [
3573 {
3574 name: "ssh",
3575 subcommands: [
3576 { name: "enable", remove: true },
3577 { name: "disable", remove: true },
3578 { name: "help", remove: true },
3579 ],
3580 options: [
3581 {
3582 name: ["-a", "--auth"],
3583 description: "Identity to connect with",
3584 args: {
3585 name: "auth",
3586 generators: sshIdentityGenerator,
3587 },
3588 },
3589 ],
3590 args: {
3591 name: "host",
3592 filterStrategy: "fuzzy",
3593 generators: sshHostsGenerator,
3594 },
3595 },
3596 {
3597 name: "login",
3598 options: [
3599 {
3600 name: ["-r", "--refresh"],
3601 description: "Refresh the auth token if expired",
3602 },
3603 {
3604 name: "--hard-refresh",
3605 description: "Force a refresh of the auth token",
3606 },
3607 ],
3608 },
3609 {
3610 name: "user",
3611 subcommands: [
3612 {
3613 name: "login",
3614 options: [
3615 {
3616 name: ["-r", "--refresh"],
3617 description: "Refresh the auth token if expired",
3618 },
3619 {
3620 name: "--hard-refresh",
3621 description: "Force a refresh of the auth token",
3622 },
3623 ],
3624 },
3625 {
3626 name: "tokens",
3627 subcommands: [
3628 {
3629 name: "list",
3630 options: [
3631 {
3632 name: ["-p", "--personal"],
3633 remove: true,
3634 },
3635 ],
3636 },
3637 ],
3638 },
3639 ],
3640 },
3641 {
3642 name: "team",
3643 subcommands: [
3644 {
3645 name: "members",
3646 description: "List all members on a team",
3647 options: [
3648 {
3649 name: ["-h", "--help"],
3650 description: "Print help information",
3651 },
3652 {
3653 name: "--version",
3654 remove: true,
3655 },
3656 ],
3657 },
3658 {
3659 name: "remove",
3660 description: "Remove a member from a team",
3661 options: [
3662 {
3663 name: ["-h", "--help"],
3664 description: "Print help information",
3665 },
3666 {
3667 name: "--version",
3668 remove: true,
3669 },
3670 ],
3671 args: {
3672 name: "email",
3673 },
3674 },
3675 {
3676 name: "add",
3677 description: "Invite a member to a team",
3678 options: [
3679 {
3680 name: "--role",
3681 args: {
3682 name: "role",
3683 isOptional: true,
3684 suggestions: ["owner", "admin", "member"],
3685 },
3686 },
3687 {
3688 name: ["-h", "--help"],
3689 description: "Print help information",
3690 },
3691 {
3692 name: "--version",
3693 remove: true,
3694 },
3695 ],
3696 args: {
3697 name: "email",
3698 },
3699 },
3700 {
3701 name: "invitations",
3702 description: "List pending invitations to a team",
3703 options: [
3704 {
3705 name: ["-h", "--help"],
3706 description: "Print help information",
3707 },
3708 {
3709 name: "--version",
3710 remove: true,
3711 },
3712 ],
3713 },
3714 {
3715 name: "revoke",
3716 description: "Revoke an invitation to a team",
3717 options: [
3718 {
3719 name: ["-h", "--help"],
3720 description: "Print help information",
3721 },
3722 {
3723 name: "--version",
3724 remove: true,
3725 },
3726 ],
3727 args: {
3728 name: "email",
3729 },
3730 },
3731 {
3732 name: "help",
3733 description:
3734 "Print this message or the help of the given subcommand(s)",
3735 args: {
3736 name: "subcommand",
3737 isOptional: true,
3738 },
3739 },
3740 ],
3741 },
3742 {
3743 name: ["internal", "_"],
3744 subcommands: [
3745 {
3746 name: "request",
3747 options: [
3748 {
3749 name: "--method",
3750 args: {
3751 isOptional: true,
3752 suggestions: [
3753 "GET",
3754 "POST",
3755 "PUT",
3756 "DELETE",
3757 "HEAD",
3758 "OPTIONS",
3759 "CONNECT",
3760 "PATCH",
3761 "TRACE",
3762 ],
3763 },
3764 },
3765 ],
3766 },
3767 {
3768 name: "ipc",
3769 options: [
3770 {
3771 name: "--figterm",
3772 isRepeatable: true,
3773 args: {
3774 name: "figterm",
3775 isOptional: true,
3776 },
3777 },
3778 {
3779 name: "--json",
3780 isRepeatable: true,
3781 args: {
3782 name: "json",
3783 },
3784 },
3785 {
3786 name: "--app",
3787 },
3788 {
3789 name: "--daemon",
3790 },
3791 {
3792 name: "--recv",
3793 },
3794 {
3795 name: ["-h", "--help"],
3796 description: "Print help information",
3797 },
3798 ],
3799 },
3800 ],
3801 },
3802 {
3803 name: "onboarding",
3804 hidden: true,
3805 },
3806 {
3807 name: "plugins",
3808 subcommands: [
3809 {
3810 name: "list",
3811 options: [
3812 {
3813 name: "--fields",
3814 description: "Fields to include in the output",
3815 isRepeatable: true,
3816 args: {
3817 name: "fields",
3818 isOptional: true,
3819 },
3820 },
3821 ],
3822 },
3823 {
3824 name: "info",
3825 description: "Info about a specific plugin",
3826 options: [
3827 {
3828 name: "--fields",
3829 description: "Fields to include in the output",
3830 isRepeatable: true,
3831 args: {
3832 name: "fields",
3833 isOptional: true,
3834 },
3835 },
3836 {
3837 name: ["-f", "--format"],
3838 description: "The output format",
3839 isRepeatable: true,
3840 args: {
3841 name: "format",
3842 isOptional: true,
3843 suggestions: [
3844 {
3845 name: "plain",
3846 description: "Outputs the results as markdown",
3847 },
3848 {
3849 name: "json",
3850 description: "Outputs the results as JSON",
3851 },
3852 {
3853 name: "json-pretty",
3854 description: "Outputs the results as pretty print JSON",
3855 },
3856 ],
3857 },
3858 },
3859 {
3860 name: ["-h", "--help"],
3861 description: "Print help information",
3862 },
3863 ],
3864 args: {
3865 name: "plugin",
3866 },
3867 },
3868 {
3869 name: "configure",
3870 description: "Configure a specific plugin",
3871 options: [
3872 {
3873 name: ["-h", "--help"],
3874 description: "Print help information",
3875 },
3876 ],
3877 args: [
3878 {
3879 name: "plugin",
3880 isOptional: true,
3881 },
3882 {
3883 name: "config",
3884 isOptional: true,
3885 },
3886 ],
3887 },
3888 ],
3889 },
3890 {
3891 name: [
3892 "workflow",
3893 "run",
3894 "r",
3895 "workflows",
3896 "snippet",
3897 "snippets",
3898 "flow",
3899 "flows",
3900 ],
3901 args: {
3902 name: "args",
3903 isVariadic: true,
3904 isOptional: true,
3905 },
3906 },
3907 {
3908 name: "integrations",
3909 description: "Managed system integrations",
3910 subcommands: [
3911 {
3912 name: "install",
3913 subcommands: [
3914 {
3915 name: "dotfiles",
3916 options: [
3917 {
3918 name: ["-h", "--help"],
3919 description: "Print help information",
3920 },
3921 ],
3922 },
3923 {
3924 name: "daemon",
3925 options: [
3926 {
3927 name: ["-h", "--help"],
3928 description: "Print help information",
3929 },
3930 ],
3931 },
3932 {
3933 name: "ssh",
3934 options: [
3935 {
3936 name: ["-h", "--help"],
3937 description: "Print help information",
3938 },
3939 ],
3940 },
3941 {
3942 name: "help",
3943 description:
3944 "Print this message or the help of the given subcommand(s)",
3945 args: {
3946 name: "subcommand",
3947 isOptional: true,
3948 },
3949 },
3950 ],
3951 options: [
3952 {
3953 name: ["-h", "--help"],
3954 description: "Print help information",
3955 },
3956 ],
3957 },
3958 {
3959 name: "uninstall",
3960 subcommands: [
3961 {
3962 name: "dotfiles",
3963 options: [
3964 {
3965 name: ["-h", "--help"],
3966 description: "Print help information",
3967 },
3968 ],
3969 },
3970 {
3971 name: "daemon",
3972 options: [
3973 {
3974 name: ["-h", "--help"],
3975 description: "Print help information",
3976 },
3977 ],
3978 },
3979 {
3980 name: "ssh",
3981 options: [
3982 {
3983 name: ["-h", "--help"],
3984 description: "Print help information",
3985 },
3986 ],
3987 },
3988 {
3989 name: "help",
3990 description:
3991 "Print this message or the help of the given subcommand(s)",
3992 args: {
3993 name: "subcommand",
3994 isOptional: true,
3995 },
3996 },
3997 ],
3998 options: [
3999 {
4000 name: ["-h", "--help"],
4001 description: "Print help information",
4002 },
4003 ],
4004 },
4005 {
4006 name: "help",
4007 description:
4008 "Print this message or the help of the given subcommand(s)",
4009 args: {
4010 name: "subcommand",
4011 isOptional: true,
4012 },
4013 },
4014 ],
4015 options: [
4016 {
4017 name: ["-h", "--help"],
4018 description: "Print help information",
4019 },
4020 ],
4021 },
4022 {
4023 name: "alpha",
4024 remove: true,
4025 },
4026 ],
4027 };
4028
4029 versions["1.4.7"] = {
4030 subcommands: [
4031 {
4032 name: "ssh",
4033 options: [
4034 {
4035 name: "--get-identities",
4036 },
4037 ],
4038 },
4039 {
4040 name: ["internal", "_"],
4041 subcommands: [
4042 {
4043 name: "request",
4044 options: [
4045 {
4046 name: "--namespace",
4047 isRepeatable: true,
4048 args: {
4049 name: "namespace",
4050 isOptional: true,
4051 },
4052 },
4053 ],
4054 },
4055 ],
4056 },
4057 {
4058 name: "integrations",
4059 description: "Manage system integrations",
4060 },
4061 ],
4062 };
4063
4064 versions["1.4.10"] = {
4065 subcommands: [
4066 {
4067 name: "ssh",
4068 options: [
4069 {
4070 name: ["-a", "--auth"],
4071 args: {
4072 isOptional: true,
4073 },
4074 },
4075 ],
4076 },
4077 {
4078 name: "login",
4079 options: [
4080 {
4081 name: "--switchable",
4082 hidden: true,
4083 },
4084 ],
4085 args: {
4086 name: "email",
4087 isOptional: true,
4088 },
4089 },
4090 {
4091 name: "user",
4092 subcommands: [
4093 {
4094 name: "login",
4095 options: [
4096 {
4097 name: "--switchable",
4098 hidden: true,
4099 },
4100 ],
4101 args: {
4102 name: "email",
4103 isOptional: true,
4104 },
4105 },
4106 {
4107 name: "tokens",
4108 description: "Subcommand for dealing with tokens",
4109 },
4110 {
4111 name: "whoami",
4112 description: "Prints details about the current user",
4113 },
4114 {
4115 name: "plan",
4116 description: "Prints details about the user's plan",
4117 hidden: true,
4118 options: [
4119 {
4120 name: ["-f", "--format"],
4121 description: "Output format to use",
4122 args: {
4123 name: "format",
4124 isOptional: true,
4125 suggestions: [
4126 {
4127 name: "plain",
4128 description: "Outputs the results as markdown",
4129 },
4130 {
4131 name: "json",
4132 description: "Outputs the results as JSON",
4133 },
4134 {
4135 name: "json-pretty",
4136 description: "Outputs the results as pretty print JSON",
4137 },
4138 ],
4139 },
4140 },
4141 {
4142 name: ["-h", "--help"],
4143 description: "Print help information",
4144 },
4145 ],
4146 },
4147 {
4148 name: "list-accounts",
4149 description: "List all accounts that can be switch to",
4150 hidden: true,
4151 options: [
4152 {
4153 name: ["-f", "--format"],
4154 description: "Output format to use",
4155 args: {
4156 name: "format",
4157 isOptional: true,
4158 suggestions: [
4159 {
4160 name: "plain",
4161 description: "Outputs the results as markdown",
4162 },
4163 {
4164 name: "json",
4165 description: "Outputs the results as JSON",
4166 },
4167 {
4168 name: "json-pretty",
4169 description: "Outputs the results as pretty print JSON",
4170 },
4171 ],
4172 },
4173 },
4174 {
4175 name: ["-h", "--help"],
4176 description: "Print help information",
4177 },
4178 ],
4179 },
4180 {
4181 name: "switch",
4182 description: "Switch to a switchable account",
4183 hidden: true,
4184 options: [
4185 {
4186 name: ["-h", "--help"],
4187 description: "Print help information",
4188 },
4189 ],
4190 args: {
4191 name: "email",
4192 generators: userGenerator,
4193 },
4194 },
4195 ],
4196 },
4197 {
4198 name: ["internal", "_"],
4199 subcommands: [
4200 {
4201 name: "fig-socket-path",
4202 options: [
4203 {
4204 name: ["-h", "--help"],
4205 description: "Print help information",
4206 },
4207 ],
4208 },
4209 {
4210 name: "figterm-socket-path",
4211 options: [
4212 {
4213 name: ["-h", "--help"],
4214 description: "Print help information",
4215 },
4216 ],
4217 args: {
4218 name: "session-id",
4219 },
4220 },
4221 ],
4222 },
4223 {
4224 name: "ai",
4225 description: "English -> Bash translation",
4226 options: [
4227 {
4228 name: ["-n", "--n"],
4229 description: "Number of completions to generate (must be <=5)",
4230 hidden: true,
4231 args: {
4232 name: "n",
4233 isOptional: true,
4234 },
4235 },
4236 {
4237 name: ["-h", "--help"],
4238 description: "Print help information",
4239 },
4240 ],
4241 args: {
4242 name: "input",
4243 isVariadic: true,
4244 isOptional: true,
4245 },
4246 },
4247 {
4248 name: "pro",
4249 description: "Fig Pro",
4250 options: [
4251 {
4252 name: ["-h", "--help"],
4253 description: "Print help information",
4254 },
4255 ],
4256 },
4257 ],
4258 };
4259
4260 export { versions };
4261 export default completion;