Debian Codegraph @

cli/tools-cli/test/versioning/fixtures/case-4/new-spec.ts

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