Debian Codegraph @

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