| 1 | const completion = { |
| 2 | name: "fig", |
| 3 | description: "The CLI for Fig", |
| 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: "--version", |
| 15 | description: "Print version information", |
| 16 | }, |
| 17 | { |
| 18 | name: ["-h", "--help"], |
| 19 | description: "Print help information", |
| 20 | }, |
| 21 | ], |
| 22 | }, |
| 23 | { |
| 24 | name: "onboarding", |
| 25 | description: "Run the Fig tutorial again", |
| 26 | options: [ |
| 27 | { |
| 28 | name: "--version", |
| 29 | description: "Print version information", |
| 30 | }, |
| 31 | { |
| 32 | name: ["-h", "--help"], |
| 33 | description: "Print help information", |
| 34 | }, |
| 35 | ], |
| 36 | }, |
| 37 | { |
| 38 | name: "running", |
| 39 | description: "Check if Fig is running", |
| 40 | options: [ |
| 41 | { |
| 42 | name: "--version", |
| 43 | description: "Print version information", |
| 44 | }, |
| 45 | { |
| 46 | name: ["-h", "--help"], |
| 47 | description: "Print help information", |
| 48 | }, |
| 49 | ], |
| 50 | }, |
| 51 | { |
| 52 | name: "launch", |
| 53 | description: "Launch the Fig desktop app", |
| 54 | options: [ |
| 55 | { |
| 56 | name: "--version", |
| 57 | description: "Print version information", |
| 58 | }, |
| 59 | { |
| 60 | name: ["-h", "--help"], |
| 61 | description: "Print help information", |
| 62 | }, |
| 63 | ], |
| 64 | }, |
| 65 | { |
| 66 | name: "restart", |
| 67 | description: "Restart the Fig desktop app", |
| 68 | options: [ |
| 69 | { |
| 70 | name: "--version", |
| 71 | description: "Print version information", |
| 72 | }, |
| 73 | { |
| 74 | name: ["-h", "--help"], |
| 75 | description: "Print help information", |
| 76 | }, |
| 77 | ], |
| 78 | }, |
| 79 | { |
| 80 | name: "quit", |
| 81 | description: "Quit the Fig desktop app", |
| 82 | options: [ |
| 83 | { |
| 84 | name: "--version", |
| 85 | description: "Print version information", |
| 86 | }, |
| 87 | { |
| 88 | name: ["-h", "--help"], |
| 89 | description: "Print help information", |
| 90 | }, |
| 91 | ], |
| 92 | }, |
| 93 | { |
| 94 | name: "set-path", |
| 95 | description: "Set the internal psudo-terminal path", |
| 96 | options: [ |
| 97 | { |
| 98 | name: "--version", |
| 99 | description: "Print version information", |
| 100 | }, |
| 101 | { |
| 102 | name: ["-h", "--help"], |
| 103 | description: "Print help information", |
| 104 | }, |
| 105 | ], |
| 106 | }, |
| 107 | { |
| 108 | name: "uninstall", |
| 109 | description: "Uninstall the Fig app", |
| 110 | options: [ |
| 111 | { |
| 112 | name: "--version", |
| 113 | description: "Print version information", |
| 114 | }, |
| 115 | { |
| 116 | name: ["-h", "--help"], |
| 117 | description: "Print help information", |
| 118 | }, |
| 119 | ], |
| 120 | }, |
| 121 | { |
| 122 | name: "prompts", |
| 123 | description: "Prompts shown on terminal startup", |
| 124 | options: [ |
| 125 | { |
| 126 | name: "--version", |
| 127 | description: "Print version information", |
| 128 | }, |
| 129 | { |
| 130 | name: ["-h", "--help"], |
| 131 | description: "Print help information", |
| 132 | }, |
| 133 | ], |
| 134 | }, |
| 135 | { |
| 136 | name: "help", |
| 137 | description: "Print this message or the help of the given subcommand(s)", |
| 138 | options: [ |
| 139 | { |
| 140 | name: "--version", |
| 141 | description: "Print version information", |
| 142 | }, |
| 143 | { |
| 144 | name: ["-h", "--help"], |
| 145 | description: "Print help information", |
| 146 | }, |
| 147 | ], |
| 148 | args: { |
| 149 | name: "subcommand", |
| 150 | isOptional: true, |
| 151 | }, |
| 152 | }, |
| 153 | ], |
| 154 | options: [ |
| 155 | { |
| 156 | name: ["-h", "--help"], |
| 157 | description: "Print help information", |
| 158 | }, |
| 159 | ], |
| 160 | }, |
| 161 | { |
| 162 | name: "hook", |
| 163 | description: "Hook commands", |
| 164 | hidden: true, |
| 165 | subcommands: [ |
| 166 | { |
| 167 | name: "editbuffer", |
| 168 | options: [ |
| 169 | { |
| 170 | name: "--version", |
| 171 | description: "Print version information", |
| 172 | }, |
| 173 | { |
| 174 | name: ["-h", "--help"], |
| 175 | description: "Print help information", |
| 176 | }, |
| 177 | ], |
| 178 | args: [ |
| 179 | { |
| 180 | name: "session-id", |
| 181 | }, |
| 182 | { |
| 183 | name: "integration", |
| 184 | }, |
| 185 | { |
| 186 | name: "tty", |
| 187 | }, |
| 188 | { |
| 189 | name: "pid", |
| 190 | }, |
| 191 | { |
| 192 | name: "histno", |
| 193 | }, |
| 194 | { |
| 195 | name: "cursor", |
| 196 | }, |
| 197 | { |
| 198 | name: "text", |
| 199 | }, |
| 200 | ], |
| 201 | }, |
| 202 | { |
| 203 | name: "event", |
| 204 | options: [ |
| 205 | { |
| 206 | name: "--version", |
| 207 | description: "Print version information", |
| 208 | }, |
| 209 | { |
| 210 | name: ["-h", "--help"], |
| 211 | description: "Print help information", |
| 212 | }, |
| 213 | ], |
| 214 | args: { |
| 215 | name: "event-name", |
| 216 | }, |
| 217 | }, |
| 218 | { |
| 219 | name: "hide", |
| 220 | options: [ |
| 221 | { |
| 222 | name: "--version", |
| 223 | description: "Print version information", |
| 224 | }, |
| 225 | { |
| 226 | name: ["-h", "--help"], |
| 227 | description: "Print help information", |
| 228 | }, |
| 229 | ], |
| 230 | }, |
| 231 | { |
| 232 | name: "init", |
| 233 | options: [ |
| 234 | { |
| 235 | name: "--version", |
| 236 | description: "Print version information", |
| 237 | }, |
| 238 | { |
| 239 | name: ["-h", "--help"], |
| 240 | description: "Print help information", |
| 241 | }, |
| 242 | ], |
| 243 | args: [ |
| 244 | { |
| 245 | name: "pid", |
| 246 | }, |
| 247 | { |
| 248 | name: "tty", |
| 249 | }, |
| 250 | ], |
| 251 | }, |
| 252 | { |
| 253 | name: "integration-ready", |
| 254 | options: [ |
| 255 | { |
| 256 | name: "--version", |
| 257 | description: "Print version information", |
| 258 | }, |
| 259 | { |
| 260 | name: ["-h", "--help"], |
| 261 | description: "Print help information", |
| 262 | }, |
| 263 | ], |
| 264 | args: { |
| 265 | name: "integration", |
| 266 | }, |
| 267 | }, |
| 268 | { |
| 269 | name: "keyboard-focus-changed", |
| 270 | options: [ |
| 271 | { |
| 272 | name: "--version", |
| 273 | description: "Print version information", |
| 274 | }, |
| 275 | { |
| 276 | name: ["-h", "--help"], |
| 277 | description: "Print help information", |
| 278 | }, |
| 279 | ], |
| 280 | args: [ |
| 281 | { |
| 282 | name: "app-identifier", |
| 283 | }, |
| 284 | { |
| 285 | name: "focused-session-id", |
| 286 | }, |
| 287 | ], |
| 288 | }, |
| 289 | { |
| 290 | name: "pre-exec", |
| 291 | options: [ |
| 292 | { |
| 293 | name: "--version", |
| 294 | description: "Print version information", |
| 295 | }, |
| 296 | { |
| 297 | name: ["-h", "--help"], |
| 298 | description: "Print help information", |
| 299 | }, |
| 300 | ], |
| 301 | args: [ |
| 302 | { |
| 303 | name: "pid", |
| 304 | }, |
| 305 | { |
| 306 | name: "tty", |
| 307 | }, |
| 308 | ], |
| 309 | }, |
| 310 | { |
| 311 | name: "prompt", |
| 312 | options: [ |
| 313 | { |
| 314 | name: "--version", |
| 315 | description: "Print version information", |
| 316 | }, |
| 317 | { |
| 318 | name: ["-h", "--help"], |
| 319 | description: "Print help information", |
| 320 | }, |
| 321 | ], |
| 322 | args: [ |
| 323 | { |
| 324 | name: "pid", |
| 325 | }, |
| 326 | { |
| 327 | name: "tty", |
| 328 | }, |
| 329 | ], |
| 330 | }, |
| 331 | { |
| 332 | name: "ssh", |
| 333 | options: [ |
| 334 | { |
| 335 | name: "--version", |
| 336 | description: "Print version information", |
| 337 | }, |
| 338 | { |
| 339 | name: "--prompt", |
| 340 | }, |
| 341 | { |
| 342 | name: ["-h", "--help"], |
| 343 | description: "Print help information", |
| 344 | }, |
| 345 | ], |
| 346 | args: [ |
| 347 | { |
| 348 | name: "pid", |
| 349 | }, |
| 350 | { |
| 351 | name: "tty", |
| 352 | }, |
| 353 | { |
| 354 | name: "control-path", |
| 355 | }, |
| 356 | { |
| 357 | name: "remote-dest", |
| 358 | }, |
| 359 | ], |
| 360 | }, |
| 361 | { |
| 362 | name: "help", |
| 363 | description: "Print this message or the help of the given subcommand(s)", |
| 364 | options: [ |
| 365 | { |
| 366 | name: "--version", |
| 367 | description: "Print version information", |
| 368 | }, |
| 369 | { |
| 370 | name: ["-h", "--help"], |
| 371 | description: "Print help information", |
| 372 | }, |
| 373 | ], |
| 374 | args: { |
| 375 | name: "subcommand", |
| 376 | isOptional: true, |
| 377 | }, |
| 378 | }, |
| 379 | ], |
| 380 | options: [ |
| 381 | { |
| 382 | name: ["-h", "--help"], |
| 383 | description: "Print help information", |
| 384 | }, |
| 385 | ], |
| 386 | }, |
| 387 | { |
| 388 | name: "debug", |
| 389 | description: "Debug Fig", |
| 390 | subcommands: [ |
| 391 | { |
| 392 | name: "app", |
| 393 | description: "Debug fig app", |
| 394 | options: [ |
| 395 | { |
| 396 | name: "--version", |
| 397 | description: "Print version information", |
| 398 | }, |
| 399 | { |
| 400 | name: ["-h", "--help"], |
| 401 | description: "Print help information", |
| 402 | }, |
| 403 | ], |
| 404 | }, |
| 405 | { |
| 406 | name: "build", |
| 407 | description: "Switch build", |
| 408 | options: [ |
| 409 | { |
| 410 | name: "--version", |
| 411 | description: "Print version information", |
| 412 | }, |
| 413 | { |
| 414 | name: ["-h", "--help"], |
| 415 | description: "Print help information", |
| 416 | }, |
| 417 | ], |
| 418 | args: { |
| 419 | name: "build", |
| 420 | suggestions: ["dev", "prod", "staging"], |
| 421 | }, |
| 422 | }, |
| 423 | { |
| 424 | name: "autocomplete-window", |
| 425 | description: "Toggle/set autocomplete window debug mode", |
| 426 | options: [ |
| 427 | { |
| 428 | name: "--version", |
| 429 | description: "Print version information", |
| 430 | }, |
| 431 | { |
| 432 | name: ["-h", "--help"], |
| 433 | description: "Print help information", |
| 434 | }, |
| 435 | ], |
| 436 | args: { |
| 437 | name: "mode", |
| 438 | isOptional: true, |
| 439 | suggestions: ["on", "off"], |
| 440 | }, |
| 441 | }, |
| 442 | { |
| 443 | name: "logs", |
| 444 | description: "Show fig debug logs", |
| 445 | options: [ |
| 446 | { |
| 447 | name: "--version", |
| 448 | description: "Print version information", |
| 449 | }, |
| 450 | { |
| 451 | name: ["-h", "--help"], |
| 452 | description: "Print help information", |
| 453 | }, |
| 454 | ], |
| 455 | args: { |
| 456 | name: "files", |
| 457 | isOptional: true, |
| 458 | }, |
| 459 | }, |
| 460 | { |
| 461 | name: "ime", |
| 462 | description: "Fig input method editor", |
| 463 | options: [ |
| 464 | { |
| 465 | name: "--version", |
| 466 | description: "Print version information", |
| 467 | }, |
| 468 | { |
| 469 | name: ["-h", "--help"], |
| 470 | description: "Print help information", |
| 471 | }, |
| 472 | ], |
| 473 | args: { |
| 474 | name: "command", |
| 475 | suggestions: [ |
| 476 | "install", |
| 477 | "uninstall", |
| 478 | "select", |
| 479 | "deselect", |
| 480 | "enable", |
| 481 | "disable", |
| 482 | "status", |
| 483 | "register", |
| 484 | ], |
| 485 | }, |
| 486 | }, |
| 487 | { |
| 488 | name: "prompt-accessibility", |
| 489 | description: "Prompt accessibility", |
| 490 | options: [ |
| 491 | { |
| 492 | name: "--version", |
| 493 | description: "Print version information", |
| 494 | }, |
| 495 | { |
| 496 | name: ["-h", "--help"], |
| 497 | description: "Print help information", |
| 498 | }, |
| 499 | ], |
| 500 | }, |
| 501 | { |
| 502 | name: "sample", |
| 503 | description: "Sample fig process", |
| 504 | options: [ |
| 505 | { |
| 506 | name: "--version", |
| 507 | description: "Print version information", |
| 508 | }, |
| 509 | { |
| 510 | name: ["-h", "--help"], |
| 511 | description: "Print help information", |
| 512 | }, |
| 513 | ], |
| 514 | }, |
| 515 | { |
| 516 | name: "unix-socket", |
| 517 | description: "Debug fig unix sockets", |
| 518 | options: [ |
| 519 | { |
| 520 | name: "--version", |
| 521 | description: "Print version information", |
| 522 | }, |
| 523 | { |
| 524 | name: ["-h", "--help"], |
| 525 | description: "Print help information", |
| 526 | }, |
| 527 | ], |
| 528 | }, |
| 529 | { |
| 530 | name: "verify-codesign", |
| 531 | description: "Debug fig codesign verification", |
| 532 | options: [ |
| 533 | { |
| 534 | name: "--version", |
| 535 | description: "Print version information", |
| 536 | }, |
| 537 | { |
| 538 | name: ["-h", "--help"], |
| 539 | description: "Print help information", |
| 540 | }, |
| 541 | ], |
| 542 | }, |
| 543 | { |
| 544 | name: "shell-integrations", |
| 545 | description: "Toggle shell integrations", |
| 546 | options: [ |
| 547 | { |
| 548 | name: "--version", |
| 549 | description: "Print version information", |
| 550 | }, |
| 551 | { |
| 552 | name: ["-h", "--help"], |
| 553 | description: "Print help information", |
| 554 | }, |
| 555 | ], |
| 556 | args: { |
| 557 | name: "mode", |
| 558 | isOptional: true, |
| 559 | suggestions: ["on", "off"], |
| 560 | }, |
| 561 | }, |
| 562 | { |
| 563 | name: "accessibility", |
| 564 | options: [ |
| 565 | { |
| 566 | name: "--version", |
| 567 | description: "Print version information", |
| 568 | }, |
| 569 | { |
| 570 | name: ["-h", "--help"], |
| 571 | description: "Print help information", |
| 572 | }, |
| 573 | ], |
| 574 | args: { |
| 575 | name: "action", |
| 576 | isOptional: true, |
| 577 | suggestions: ["refresh", "reset", "prompt", "open", "status"], |
| 578 | }, |
| 579 | }, |
| 580 | { |
| 581 | name: "help", |
| 582 | description: "Print this message or the help of the given subcommand(s)", |
| 583 | options: [ |
| 584 | { |
| 585 | name: "--version", |
| 586 | description: "Print version information", |
| 587 | }, |
| 588 | { |
| 589 | name: ["-h", "--help"], |
| 590 | description: "Print help information", |
| 591 | }, |
| 592 | ], |
| 593 | args: { |
| 594 | name: "subcommand", |
| 595 | isOptional: true, |
| 596 | }, |
| 597 | }, |
| 598 | ], |
| 599 | options: [ |
| 600 | { |
| 601 | name: ["-h", "--help"], |
| 602 | description: "Print help information", |
| 603 | }, |
| 604 | ], |
| 605 | }, |
| 606 | { |
| 607 | name: "settings", |
| 608 | description: "Customize appearance & behavior", |
| 609 | subcommands: [ |
| 610 | { |
| 611 | name: "init", |
| 612 | description: "Reload the settings listener", |
| 613 | options: [ |
| 614 | { |
| 615 | name: "--version", |
| 616 | description: "Print version information", |
| 617 | }, |
| 618 | { |
| 619 | name: ["-h", "--help"], |
| 620 | description: "Print help information", |
| 621 | }, |
| 622 | ], |
| 623 | }, |
| 624 | { |
| 625 | name: "docs", |
| 626 | description: "Get the settings documentation", |
| 627 | options: [ |
| 628 | { |
| 629 | name: "--version", |
| 630 | description: "Print version information", |
| 631 | }, |
| 632 | { |
| 633 | name: ["-h", "--help"], |
| 634 | description: "Print help information", |
| 635 | }, |
| 636 | ], |
| 637 | }, |
| 638 | { |
| 639 | name: "open", |
| 640 | description: "Open the settings file", |
| 641 | options: [ |
| 642 | { |
| 643 | name: "--version", |
| 644 | description: "Print version information", |
| 645 | }, |
| 646 | { |
| 647 | name: ["-h", "--help"], |
| 648 | description: "Print help information", |
| 649 | }, |
| 650 | ], |
| 651 | }, |
| 652 | { |
| 653 | name: "sync", |
| 654 | description: "Sync the current settings", |
| 655 | options: [ |
| 656 | { |
| 657 | name: "--version", |
| 658 | description: "Print version information", |
| 659 | }, |
| 660 | { |
| 661 | name: ["-h", "--help"], |
| 662 | description: "Print help information", |
| 663 | }, |
| 664 | ], |
| 665 | }, |
| 666 | { |
| 667 | name: "help", |
| 668 | description: "Print this message or the help of the given subcommand(s)", |
| 669 | options: [ |
| 670 | { |
| 671 | name: "--version", |
| 672 | description: "Print version information", |
| 673 | }, |
| 674 | { |
| 675 | name: ["-h", "--help"], |
| 676 | description: "Print help information", |
| 677 | }, |
| 678 | ], |
| 679 | args: { |
| 680 | name: "subcommand", |
| 681 | isOptional: true, |
| 682 | }, |
| 683 | }, |
| 684 | ], |
| 685 | options: [ |
| 686 | { |
| 687 | name: ["-d", "--delete"], |
| 688 | description: "Delete", |
| 689 | }, |
| 690 | { |
| 691 | name: ["-h", "--help"], |
| 692 | description: "Print help information", |
| 693 | }, |
| 694 | ], |
| 695 | args: [ |
| 696 | { |
| 697 | name: "key", |
| 698 | isOptional: true, |
| 699 | }, |
| 700 | { |
| 701 | name: "value", |
| 702 | isOptional: true, |
| 703 | }, |
| 704 | ], |
| 705 | }, |
| 706 | { |
| 707 | name: "tips", |
| 708 | description: "Enable/disable fig tips", |
| 709 | subcommands: [ |
| 710 | { |
| 711 | name: "enable", |
| 712 | description: "Enable fig tips", |
| 713 | options: [ |
| 714 | { |
| 715 | name: "--version", |
| 716 | description: "Print version information", |
| 717 | }, |
| 718 | { |
| 719 | name: ["-h", "--help"], |
| 720 | description: "Print help information", |
| 721 | }, |
| 722 | ], |
| 723 | }, |
| 724 | { |
| 725 | name: "disable", |
| 726 | description: "Disable fig tips", |
| 727 | options: [ |
| 728 | { |
| 729 | name: "--version", |
| 730 | description: "Print version information", |
| 731 | }, |
| 732 | { |
| 733 | name: ["-h", "--help"], |
| 734 | description: "Print help information", |
| 735 | }, |
| 736 | ], |
| 737 | }, |
| 738 | { |
| 739 | name: "reset", |
| 740 | description: "Reset the tips to the default", |
| 741 | hidden: true, |
| 742 | options: [ |
| 743 | { |
| 744 | name: "--version", |
| 745 | description: "Print version information", |
| 746 | }, |
| 747 | { |
| 748 | name: ["-h", "--help"], |
| 749 | description: "Print help information", |
| 750 | }, |
| 751 | ], |
| 752 | }, |
| 753 | { |
| 754 | name: "prompt", |
| 755 | description: "Show the tips", |
| 756 | hidden: true, |
| 757 | options: [ |
| 758 | { |
| 759 | name: "--version", |
| 760 | description: "Print version information", |
| 761 | }, |
| 762 | { |
| 763 | name: ["-h", "--help"], |
| 764 | description: "Print help information", |
| 765 | }, |
| 766 | ], |
| 767 | }, |
| 768 | { |
| 769 | name: "help", |
| 770 | description: "Print this message or the help of the given subcommand(s)", |
| 771 | options: [ |
| 772 | { |
| 773 | name: "--version", |
| 774 | description: "Print version information", |
| 775 | }, |
| 776 | { |
| 777 | name: ["-h", "--help"], |
| 778 | description: "Print help information", |
| 779 | }, |
| 780 | ], |
| 781 | args: { |
| 782 | name: "subcommand", |
| 783 | isOptional: true, |
| 784 | }, |
| 785 | }, |
| 786 | ], |
| 787 | options: [ |
| 788 | { |
| 789 | name: ["-h", "--help"], |
| 790 | description: "Print help information", |
| 791 | }, |
| 792 | ], |
| 793 | }, |
| 794 | { |
| 795 | name: "install", |
| 796 | description: "Install fig cli components", |
| 797 | options: [ |
| 798 | { |
| 799 | name: "--daemon", |
| 800 | description: "Install only the daemon", |
| 801 | exclusiveOn: ["--dotfiles"], |
| 802 | }, |
| 803 | { |
| 804 | name: "--dotfiles", |
| 805 | description: "Install only the shell integrations", |
| 806 | }, |
| 807 | { |
| 808 | name: "--no-confirm", |
| 809 | description: "Don't confirm automatic installation", |
| 810 | }, |
| 811 | { |
| 812 | name: "--force", |
| 813 | description: "Force installation of fig", |
| 814 | }, |
| 815 | { |
| 816 | name: ["-h", "--help"], |
| 817 | description: "Print help information", |
| 818 | }, |
| 819 | ], |
| 820 | }, |
| 821 | { |
| 822 | name: "uninstall", |
| 823 | description: "Uninstall fig", |
| 824 | hidden: true, |
| 825 | options: [ |
| 826 | { |
| 827 | name: ["-h", "--help"], |
| 828 | description: "Print help information", |
| 829 | }, |
| 830 | ], |
| 831 | }, |
| 832 | { |
| 833 | name: "update", |
| 834 | description: "Update dotfiles", |
| 835 | options: [ |
| 836 | { |
| 837 | name: ["-y", "--no-confirm"], |
| 838 | description: "Force update", |
| 839 | }, |
| 840 | { |
| 841 | name: ["-h", "--help"], |
| 842 | description: "Print help information", |
| 843 | }, |
| 844 | ], |
| 845 | }, |
| 846 | { |
| 847 | name: "daemon", |
| 848 | description: "Run the daemon", |
| 849 | hidden: true, |
| 850 | options: [ |
| 851 | { |
| 852 | name: ["-h", "--help"], |
| 853 | description: "Print help information", |
| 854 | }, |
| 855 | ], |
| 856 | }, |
| 857 | { |
| 858 | name: "diagnostic", |
| 859 | description: "Run diagnostic tests", |
| 860 | options: [ |
| 861 | { |
| 862 | name: ["-f", "--format"], |
| 863 | description: "The format of the output", |
| 864 | args: { |
| 865 | name: "format", |
| 866 | isOptional: true, |
| 867 | suggestions: [ |
| 868 | { |
| 869 | name: "plain", |
| 870 | description: "Outputs the results as markdown", |
| 871 | }, |
| 872 | { |
| 873 | name: "json", |
| 874 | description: "Outputs the results as JSON", |
| 875 | }, |
| 876 | ], |
| 877 | }, |
| 878 | }, |
| 879 | { |
| 880 | name: "--force", |
| 881 | description: "Force limited diagnostic output", |
| 882 | }, |
| 883 | { |
| 884 | name: ["-h", "--help"], |
| 885 | description: "Print help information", |
| 886 | }, |
| 887 | ], |
| 888 | }, |
| 889 | { |
| 890 | name: "init", |
| 891 | description: "Generate the dotfiles for the given shell", |
| 892 | options: [ |
| 893 | { |
| 894 | name: ["-h", "--help"], |
| 895 | description: "Print help information", |
| 896 | }, |
| 897 | ], |
| 898 | args: [ |
| 899 | { |
| 900 | name: "shell", |
| 901 | suggestions: [ |
| 902 | { |
| 903 | name: "bash", |
| 904 | description: "Bash shell", |
| 905 | }, |
| 906 | { |
| 907 | name: "zsh", |
| 908 | description: "Zsh shell", |
| 909 | }, |
| 910 | { |
| 911 | name: "fish", |
| 912 | description: "Fish shell", |
| 913 | }, |
| 914 | ], |
| 915 | }, |
| 916 | { |
| 917 | name: "when", |
| 918 | suggestions: ["pre", "post"], |
| 919 | }, |
| 920 | ], |
| 921 | hidden: true, |
| 922 | }, |
| 923 | { |
| 924 | name: "source", |
| 925 | description: "Sync your latest dotfiles", |
| 926 | options: [ |
| 927 | { |
| 928 | name: ["-h", "--help"], |
| 929 | description: "Print help information", |
| 930 | }, |
| 931 | ], |
| 932 | }, |
| 933 | { |
| 934 | name: "theme", |
| 935 | description: "Get or set theme", |
| 936 | options: [ |
| 937 | { |
| 938 | name: ["-h", "--help"], |
| 939 | description: "Print help information", |
| 940 | }, |
| 941 | ], |
| 942 | args: { |
| 943 | name: "theme", |
| 944 | isOptional: true, |
| 945 | }, |
| 946 | }, |
| 947 | { |
| 948 | name: "invite", |
| 949 | description: "Invite friends to Fig", |
| 950 | options: [ |
| 951 | { |
| 952 | name: ["-h", "--help"], |
| 953 | description: "Print help information", |
| 954 | }, |
| 955 | ], |
| 956 | }, |
| 957 | { |
| 958 | name: "tweet", |
| 959 | description: "Tweet about Fig", |
| 960 | options: [ |
| 961 | { |
| 962 | name: ["-h", "--help"], |
| 963 | description: "Print help information", |
| 964 | }, |
| 965 | ], |
| 966 | icon: "fig://icon?type=twitter", |
| 967 | }, |
| 968 | { |
| 969 | name: "issue", |
| 970 | description: "Create a new Github issue", |
| 971 | options: [ |
| 972 | { |
| 973 | name: ["-f", "--force"], |
| 974 | description: "Force issue creation", |
| 975 | }, |
| 976 | { |
| 977 | name: ["-h", "--help"], |
| 978 | description: "Print help information", |
| 979 | }, |
| 980 | ], |
| 981 | args: { |
| 982 | name: "description", |
| 983 | isOptional: true, |
| 984 | }, |
| 985 | icon: "fig://icon?type=github", |
| 986 | }, |
| 987 | { |
| 988 | name: "login", |
| 989 | description: "Login to Fig", |
| 990 | options: [ |
| 991 | { |
| 992 | name: ["-r", "--refresh"], |
| 993 | description: "Manually refresh the auth token", |
| 994 | }, |
| 995 | { |
| 996 | name: ["-h", "--help"], |
| 997 | description: "Print help information", |
| 998 | }, |
| 999 | ], |
| 1000 | }, |
| 1001 | { |
| 1002 | name: "logout", |
| 1003 | description: "Logout of Fig", |
| 1004 | options: [ |
| 1005 | { |
| 1006 | name: ["-h", "--help"], |
| 1007 | description: "Print help information", |
| 1008 | }, |
| 1009 | ], |
| 1010 | }, |
| 1011 | { |
| 1012 | name: "user", |
| 1013 | description: "Details about the current user", |
| 1014 | options: [ |
| 1015 | { |
| 1016 | name: ["-h", "--help"], |
| 1017 | description: "Print help information", |
| 1018 | }, |
| 1019 | ], |
| 1020 | }, |
| 1021 | { |
| 1022 | name: "doctor", |
| 1023 | description: "Check Fig is properly configured", |
| 1024 | options: [ |
| 1025 | { |
| 1026 | name: "--verbose", |
| 1027 | description: "Run all doctor tests, with no fixes", |
| 1028 | }, |
| 1029 | { |
| 1030 | name: "--strict", |
| 1031 | description: "Error on warnings", |
| 1032 | }, |
| 1033 | { |
| 1034 | name: ["-h", "--help"], |
| 1035 | description: "Print help information", |
| 1036 | }, |
| 1037 | ], |
| 1038 | }, |
| 1039 | { |
| 1040 | name: "completion", |
| 1041 | description: "Generate the completion spec for Fig", |
| 1042 | hidden: true, |
| 1043 | options: [ |
| 1044 | { |
| 1045 | name: ["-h", "--help"], |
| 1046 | description: "Print help information", |
| 1047 | }, |
| 1048 | ], |
| 1049 | args: { |
| 1050 | name: "shell", |
| 1051 | isOptional: true, |
| 1052 | suggestions: [ |
| 1053 | { |
| 1054 | name: "bash", |
| 1055 | description: "Bash shell compleations", |
| 1056 | }, |
| 1057 | { |
| 1058 | name: "fish", |
| 1059 | description: "Fish shell completions", |
| 1060 | }, |
| 1061 | { |
| 1062 | name: "zsh", |
| 1063 | description: "Zsh shell completions", |
| 1064 | }, |
| 1065 | { |
| 1066 | name: "fig", |
| 1067 | description: "Fig completion spec", |
| 1068 | }, |
| 1069 | ], |
| 1070 | }, |
| 1071 | }, |
| 1072 | { |
| 1073 | name: ["internal", "_"], |
| 1074 | description: "Internal subcommands used for Fig", |
| 1075 | hidden: true, |
| 1076 | subcommands: [ |
| 1077 | { |
| 1078 | name: "prompt-dotfiles-changed", |
| 1079 | description: |
| 1080 | "Prompt the user that the dotfiles have changes Also use for `fig source` internals", |
| 1081 | options: [ |
| 1082 | { |
| 1083 | name: "--version", |
| 1084 | description: "Print version information", |
| 1085 | }, |
| 1086 | { |
| 1087 | name: ["-h", "--help"], |
| 1088 | description: "Print help information", |
| 1089 | }, |
| 1090 | ], |
| 1091 | }, |
| 1092 | { |
| 1093 | name: "local-state", |
| 1094 | description: "Change the local-state file", |
| 1095 | subcommands: [ |
| 1096 | { |
| 1097 | name: "init", |
| 1098 | description: "Reload the state listener", |
| 1099 | options: [ |
| 1100 | { |
| 1101 | name: "--help", |
| 1102 | description: "Print help information", |
| 1103 | }, |
| 1104 | { |
| 1105 | name: "--version", |
| 1106 | description: "Print version information", |
| 1107 | }, |
| 1108 | ], |
| 1109 | }, |
| 1110 | { |
| 1111 | name: "open", |
| 1112 | description: "Open the state file", |
| 1113 | options: [ |
| 1114 | { |
| 1115 | name: "--help", |
| 1116 | description: "Print help information", |
| 1117 | }, |
| 1118 | { |
| 1119 | name: "--version", |
| 1120 | description: "Print version information", |
| 1121 | }, |
| 1122 | ], |
| 1123 | }, |
| 1124 | ], |
| 1125 | options: [ |
| 1126 | { |
| 1127 | name: "--version", |
| 1128 | description: "Print version information", |
| 1129 | }, |
| 1130 | { |
| 1131 | name: ["-d", "--delete"], |
| 1132 | description: "Delete the state", |
| 1133 | }, |
| 1134 | { |
| 1135 | name: ["-h", "--help"], |
| 1136 | description: "Print help information", |
| 1137 | }, |
| 1138 | ], |
| 1139 | args: [ |
| 1140 | { |
| 1141 | name: "key", |
| 1142 | isOptional: true, |
| 1143 | }, |
| 1144 | { |
| 1145 | name: "value", |
| 1146 | isOptional: true, |
| 1147 | }, |
| 1148 | ], |
| 1149 | }, |
| 1150 | { |
| 1151 | name: "callback", |
| 1152 | description: "Callback used for the internal psudoterminal", |
| 1153 | options: [ |
| 1154 | { |
| 1155 | name: "--version", |
| 1156 | description: "Print version information", |
| 1157 | }, |
| 1158 | { |
| 1159 | name: ["-h", "--help"], |
| 1160 | description: "Print help information", |
| 1161 | }, |
| 1162 | ], |
| 1163 | args: [ |
| 1164 | { |
| 1165 | name: "handler-id", |
| 1166 | }, |
| 1167 | { |
| 1168 | name: "filename", |
| 1169 | isOptional: true, |
| 1170 | }, |
| 1171 | { |
| 1172 | name: "exit-code", |
| 1173 | isOptional: true, |
| 1174 | }, |
| 1175 | ], |
| 1176 | }, |
| 1177 | { |
| 1178 | name: "install", |
| 1179 | description: "Install fig cli", |
| 1180 | options: [ |
| 1181 | { |
| 1182 | name: "--version", |
| 1183 | description: "Print version information", |
| 1184 | }, |
| 1185 | { |
| 1186 | name: "--daemon", |
| 1187 | description: "Install only the daemon", |
| 1188 | exclusiveOn: ["--dotfiles"], |
| 1189 | }, |
| 1190 | { |
| 1191 | name: "--dotfiles", |
| 1192 | description: "Install only the shell integrations", |
| 1193 | }, |
| 1194 | { |
| 1195 | name: "--no-confirm", |
| 1196 | description: "Don't confirm automatic installation", |
| 1197 | }, |
| 1198 | { |
| 1199 | name: "--force", |
| 1200 | description: "Force installation of fig", |
| 1201 | }, |
| 1202 | { |
| 1203 | name: ["-h", "--help"], |
| 1204 | description: "Print help information", |
| 1205 | }, |
| 1206 | ], |
| 1207 | }, |
| 1208 | { |
| 1209 | name: "uninstall", |
| 1210 | description: "Uninstall fig cli", |
| 1211 | options: [ |
| 1212 | { |
| 1213 | name: "--version", |
| 1214 | description: "Print version information", |
| 1215 | }, |
| 1216 | { |
| 1217 | name: "--daemon", |
| 1218 | description: "Uninstall only the daemon", |
| 1219 | }, |
| 1220 | { |
| 1221 | name: "--dotfiles", |
| 1222 | description: "Uninstall only the shell integrations", |
| 1223 | }, |
| 1224 | { |
| 1225 | name: "--binary", |
| 1226 | description: "Uninstall only the binary", |
| 1227 | }, |
| 1228 | { |
| 1229 | name: ["-h", "--help"], |
| 1230 | description: "Print help information", |
| 1231 | }, |
| 1232 | ], |
| 1233 | }, |
| 1234 | { |
| 1235 | name: "warn-user-when-uninstalling-incorrectly", |
| 1236 | description: "Notify the user that they are uninstalling incorrectly", |
| 1237 | options: [ |
| 1238 | { |
| 1239 | name: "--version", |
| 1240 | description: "Print version information", |
| 1241 | }, |
| 1242 | { |
| 1243 | name: ["-h", "--help"], |
| 1244 | description: "Print help information", |
| 1245 | }, |
| 1246 | ], |
| 1247 | }, |
| 1248 | { |
| 1249 | name: "animation", |
| 1250 | options: [ |
| 1251 | { |
| 1252 | name: ["-f", "--filename"], |
| 1253 | args: { |
| 1254 | name: "filename", |
| 1255 | isOptional: true, |
| 1256 | }, |
| 1257 | }, |
| 1258 | { |
| 1259 | name: ["-r", "--rate"], |
| 1260 | args: { |
| 1261 | name: "rate", |
| 1262 | isOptional: true, |
| 1263 | }, |
| 1264 | }, |
| 1265 | { |
| 1266 | name: ["-b", "--before-text"], |
| 1267 | args: { |
| 1268 | name: "before-text", |
| 1269 | isOptional: true, |
| 1270 | }, |
| 1271 | }, |
| 1272 | { |
| 1273 | name: ["-a", "--after-text"], |
| 1274 | args: { |
| 1275 | name: "after-text", |
| 1276 | isOptional: true, |
| 1277 | }, |
| 1278 | }, |
| 1279 | { |
| 1280 | name: "--version", |
| 1281 | description: "Print version information", |
| 1282 | }, |
| 1283 | { |
| 1284 | name: ["-h", "--help"], |
| 1285 | description: "Print help information", |
| 1286 | }, |
| 1287 | ], |
| 1288 | }, |
| 1289 | { |
| 1290 | name: "get-shell", |
| 1291 | options: [ |
| 1292 | { |
| 1293 | name: "--version", |
| 1294 | description: "Print version information", |
| 1295 | }, |
| 1296 | { |
| 1297 | name: ["-h", "--help"], |
| 1298 | description: "Print help information", |
| 1299 | }, |
| 1300 | ], |
| 1301 | }, |
| 1302 | { |
| 1303 | name: "help", |
| 1304 | description: "Print this message or the help of the given subcommand(s)", |
| 1305 | options: [ |
| 1306 | { |
| 1307 | name: "--version", |
| 1308 | description: "Print version information", |
| 1309 | }, |
| 1310 | { |
| 1311 | name: ["-h", "--help"], |
| 1312 | description: "Print help information", |
| 1313 | }, |
| 1314 | ], |
| 1315 | args: { |
| 1316 | name: "subcommand", |
| 1317 | isOptional: true, |
| 1318 | }, |
| 1319 | }, |
| 1320 | ], |
| 1321 | options: [ |
| 1322 | { |
| 1323 | name: ["-h", "--help"], |
| 1324 | description: "Print help information", |
| 1325 | }, |
| 1326 | ], |
| 1327 | }, |
| 1328 | { |
| 1329 | name: "launch", |
| 1330 | description: "Launch the Fig desktop app", |
| 1331 | options: [ |
| 1332 | { |
| 1333 | name: ["-h", "--help"], |
| 1334 | description: "Print help information", |
| 1335 | }, |
| 1336 | ], |
| 1337 | }, |
| 1338 | { |
| 1339 | name: "quit", |
| 1340 | description: "Quit the Fig desktop app", |
| 1341 | options: [ |
| 1342 | { |
| 1343 | name: ["-h", "--help"], |
| 1344 | description: "Print help information", |
| 1345 | }, |
| 1346 | ], |
| 1347 | }, |
| 1348 | { |
| 1349 | name: "restart", |
| 1350 | description: "Restart the Fig desktop app", |
| 1351 | options: [ |
| 1352 | { |
| 1353 | name: ["-h", "--help"], |
| 1354 | description: "Print help information", |
| 1355 | }, |
| 1356 | ], |
| 1357 | args: { |
| 1358 | name: "process", |
| 1359 | isOptional: true, |
| 1360 | suggestions: [ |
| 1361 | { |
| 1362 | name: "daemon", |
| 1363 | description: "Daemon process", |
| 1364 | }, |
| 1365 | { |
| 1366 | name: "app", |
| 1367 | description: "Fig process", |
| 1368 | }, |
| 1369 | ], |
| 1370 | }, |
| 1371 | }, |
| 1372 | { |
| 1373 | name: "alpha", |
| 1374 | description: "(LEGACY) Old way to launch mission control", |
| 1375 | hidden: true, |
| 1376 | options: [ |
| 1377 | { |
| 1378 | name: ["-h", "--help"], |
| 1379 | description: "Print help information", |
| 1380 | }, |
| 1381 | ], |
| 1382 | }, |
| 1383 | { |
| 1384 | name: "onboarding", |
| 1385 | description: "Run the Fig tutorial", |
| 1386 | options: [ |
| 1387 | { |
| 1388 | name: ["-h", "--help"], |
| 1389 | description: "Print help information", |
| 1390 | }, |
| 1391 | ], |
| 1392 | }, |
| 1393 | { |
| 1394 | name: "plugins", |
| 1395 | subcommands: [ |
| 1396 | { |
| 1397 | name: "sync", |
| 1398 | description: |
| 1399 | "Sync the current plugins (this will not update plugins that are already installed)", |
| 1400 | options: [ |
| 1401 | { |
| 1402 | name: "--version", |
| 1403 | description: "Print version information", |
| 1404 | }, |
| 1405 | { |
| 1406 | name: ["-h", "--help"], |
| 1407 | description: "Print help information", |
| 1408 | }, |
| 1409 | ], |
| 1410 | }, |
| 1411 | { |
| 1412 | name: "update", |
| 1413 | description: "Update the installed plugins", |
| 1414 | options: [ |
| 1415 | { |
| 1416 | name: "--version", |
| 1417 | description: "Print version information", |
| 1418 | }, |
| 1419 | { |
| 1420 | name: ["-h", "--help"], |
| 1421 | description: "Print help information", |
| 1422 | }, |
| 1423 | ], |
| 1424 | }, |
| 1425 | { |
| 1426 | name: "add", |
| 1427 | description: "Install a specific plugin from the plugin store", |
| 1428 | options: [ |
| 1429 | { |
| 1430 | name: "--version", |
| 1431 | description: "Print version information", |
| 1432 | }, |
| 1433 | { |
| 1434 | name: ["-h", "--help"], |
| 1435 | description: "Print help information", |
| 1436 | }, |
| 1437 | ], |
| 1438 | args: { |
| 1439 | name: "plugin", |
| 1440 | }, |
| 1441 | }, |
| 1442 | { |
| 1443 | name: "remove", |
| 1444 | description: "Uninstall a specific plugin", |
| 1445 | options: [ |
| 1446 | { |
| 1447 | name: "--version", |
| 1448 | description: "Print version information", |
| 1449 | }, |
| 1450 | { |
| 1451 | name: ["-h", "--help"], |
| 1452 | description: "Print help information", |
| 1453 | }, |
| 1454 | ], |
| 1455 | args: { |
| 1456 | name: "plugin", |
| 1457 | }, |
| 1458 | }, |
| 1459 | { |
| 1460 | name: "list", |
| 1461 | description: "List all plugins available in the plugin store", |
| 1462 | options: [ |
| 1463 | { |
| 1464 | name: ["-f", "--format"], |
| 1465 | description: "The output format", |
| 1466 | args: { |
| 1467 | name: "format", |
| 1468 | isOptional: true, |
| 1469 | suggestions: [ |
| 1470 | { |
| 1471 | name: "plain", |
| 1472 | description: "Outputs the results as markdown", |
| 1473 | }, |
| 1474 | { |
| 1475 | name: "json", |
| 1476 | description: "Outputs the results as JSON", |
| 1477 | }, |
| 1478 | ], |
| 1479 | }, |
| 1480 | }, |
| 1481 | { |
| 1482 | name: "--version", |
| 1483 | description: "Print version information", |
| 1484 | }, |
| 1485 | { |
| 1486 | name: ["-i", "--installed"], |
| 1487 | description: "Only list plugins that are installed", |
| 1488 | }, |
| 1489 | { |
| 1490 | name: ["-h", "--help"], |
| 1491 | description: "Print help information", |
| 1492 | }, |
| 1493 | ], |
| 1494 | }, |
| 1495 | { |
| 1496 | name: "help", |
| 1497 | description: "Print this message or the help of the given subcommand(s)", |
| 1498 | options: [ |
| 1499 | { |
| 1500 | name: "--version", |
| 1501 | description: "Print version information", |
| 1502 | }, |
| 1503 | { |
| 1504 | name: ["-h", "--help"], |
| 1505 | description: "Print help information", |
| 1506 | }, |
| 1507 | ], |
| 1508 | args: { |
| 1509 | name: "subcommand", |
| 1510 | isOptional: true, |
| 1511 | }, |
| 1512 | }, |
| 1513 | ], |
| 1514 | options: [ |
| 1515 | { |
| 1516 | name: ["-h", "--help"], |
| 1517 | description: "Print help information", |
| 1518 | }, |
| 1519 | ], |
| 1520 | }, |
| 1521 | { |
| 1522 | name: "app:running", |
| 1523 | description: "(LEGACY) Old hook that was being used somewhere", |
| 1524 | hidden: true, |
| 1525 | options: [ |
| 1526 | { |
| 1527 | name: ["-h", "--help"], |
| 1528 | description: "Print help information", |
| 1529 | }, |
| 1530 | ], |
| 1531 | }, |
| 1532 | { |
| 1533 | name: "bg:ssh", |
| 1534 | description: "(LEGACY) Old ssh hook that might be in ~/.ssh/config", |
| 1535 | hidden: true, |
| 1536 | options: [ |
| 1537 | { |
| 1538 | name: ["-h", "--help"], |
| 1539 | description: "Print help information", |
| 1540 | }, |
| 1541 | ], |
| 1542 | }, |
| 1543 | { |
| 1544 | name: "help", |
| 1545 | description: "Print this message or the help of the given subcommand(s)", |
| 1546 | args: { |
| 1547 | name: "subcommand", |
| 1548 | isOptional: true, |
| 1549 | }, |
| 1550 | }, |
| 1551 | ], |
| 1552 | options: [ |
| 1553 | { |
| 1554 | name: ["-h", "--help"], |
| 1555 | description: "Print help information", |
| 1556 | }, |
| 1557 | { |
| 1558 | name: ["-V", "--version"], |
| 1559 | description: "Print version information", |
| 1560 | }, |
| 1561 | ], |
| 1562 | }; |
| 1563 | |
| 1564 | const versions = {}; |
| 1565 | |
| 1566 | versions["1.3.0"] = {}; |
| 1567 | |
| 1568 | versions["1.3.1"] = { |
| 1569 | subcommands: [ |
| 1570 | { |
| 1571 | name: "debug", |
| 1572 | subcommands: [ |
| 1573 | { |
| 1574 | name: "shell-integrations", |
| 1575 | remove: true, |
| 1576 | }, |
| 1577 | ], |
| 1578 | }, |
| 1579 | { |
| 1580 | name: "settings", |
| 1581 | subcommands: [ |
| 1582 | { |
| 1583 | name: "all", |
| 1584 | description: "List all the settings", |
| 1585 | options: [ |
| 1586 | { |
| 1587 | name: ["-f", "--format"], |
| 1588 | description: "Format of the output", |
| 1589 | args: { |
| 1590 | name: "format", |
| 1591 | isOptional: true, |
| 1592 | suggestions: [ |
| 1593 | { |
| 1594 | name: "plain", |
| 1595 | description: "Outputs the results as markdown", |
| 1596 | }, |
| 1597 | { |
| 1598 | name: "json", |
| 1599 | description: "Outputs the results as JSON", |
| 1600 | }, |
| 1601 | { |
| 1602 | name: "json-pretty", |
| 1603 | description: "Outputs the results as pretty print JSON", |
| 1604 | }, |
| 1605 | ], |
| 1606 | }, |
| 1607 | }, |
| 1608 | { |
| 1609 | name: "--version", |
| 1610 | description: "Print version information", |
| 1611 | }, |
| 1612 | { |
| 1613 | name: ["-r", "--remote"], |
| 1614 | description: "List the remote settings", |
| 1615 | }, |
| 1616 | { |
| 1617 | name: ["-h", "--help"], |
| 1618 | description: "Print help information", |
| 1619 | }, |
| 1620 | ], |
| 1621 | }, |
| 1622 | ], |
| 1623 | options: [ |
| 1624 | { |
| 1625 | name: ["-f", "--format"], |
| 1626 | description: "Format of the output", |
| 1627 | args: { |
| 1628 | name: "format", |
| 1629 | isOptional: true, |
| 1630 | suggestions: [ |
| 1631 | { |
| 1632 | name: "plain", |
| 1633 | description: "Outputs the results as markdown", |
| 1634 | }, |
| 1635 | { |
| 1636 | name: "json", |
| 1637 | description: "Outputs the results as JSON", |
| 1638 | }, |
| 1639 | { |
| 1640 | name: "json-pretty", |
| 1641 | description: "Outputs the results as pretty print JSON", |
| 1642 | }, |
| 1643 | ], |
| 1644 | }, |
| 1645 | }, |
| 1646 | { |
| 1647 | name: ["-d", "--delete"], |
| 1648 | description: "Delete a value", |
| 1649 | }, |
| 1650 | ], |
| 1651 | }, |
| 1652 | { |
| 1653 | name: "install", |
| 1654 | options: [ |
| 1655 | { |
| 1656 | name: "--daemon", |
| 1657 | exclusiveOn: ["--input-method"], |
| 1658 | }, |
| 1659 | { |
| 1660 | name: "--dotfiles", |
| 1661 | exclusiveOn: ["--input-method"], |
| 1662 | }, |
| 1663 | { |
| 1664 | name: "--input-method", |
| 1665 | description: "Prompt input method installation", |
| 1666 | exclusiveOn: ["--daemon", "--dotfiles"], |
| 1667 | }, |
| 1668 | { |
| 1669 | name: "--ssh", |
| 1670 | description: "Install only the ssh integration", |
| 1671 | }, |
| 1672 | ], |
| 1673 | }, |
| 1674 | { |
| 1675 | name: "ssh", |
| 1676 | description: "Enable/disable fig SSH integration", |
| 1677 | subcommands: [ |
| 1678 | { |
| 1679 | name: "enable", |
| 1680 | description: "Enable ssh integration", |
| 1681 | options: [ |
| 1682 | { |
| 1683 | name: "--version", |
| 1684 | description: "Print version information", |
| 1685 | }, |
| 1686 | { |
| 1687 | name: ["-h", "--help"], |
| 1688 | description: "Print help information", |
| 1689 | }, |
| 1690 | ], |
| 1691 | }, |
| 1692 | { |
| 1693 | name: "disable", |
| 1694 | description: "Disable ssh integration", |
| 1695 | options: [ |
| 1696 | { |
| 1697 | name: "--version", |
| 1698 | description: "Print version information", |
| 1699 | }, |
| 1700 | { |
| 1701 | name: ["-h", "--help"], |
| 1702 | description: "Print help information", |
| 1703 | }, |
| 1704 | ], |
| 1705 | }, |
| 1706 | { |
| 1707 | name: "help", |
| 1708 | description: "Print this message or the help of the given subcommand(s)", |
| 1709 | options: [ |
| 1710 | { |
| 1711 | name: "--version", |
| 1712 | description: "Print version information", |
| 1713 | }, |
| 1714 | { |
| 1715 | name: ["-h", "--help"], |
| 1716 | description: "Print help information", |
| 1717 | }, |
| 1718 | ], |
| 1719 | args: { |
| 1720 | name: "subcommand", |
| 1721 | isOptional: true, |
| 1722 | }, |
| 1723 | }, |
| 1724 | ], |
| 1725 | options: [ |
| 1726 | { |
| 1727 | name: ["-h", "--help"], |
| 1728 | description: "Print help information", |
| 1729 | }, |
| 1730 | ], |
| 1731 | }, |
| 1732 | { |
| 1733 | name: "diagnostic", |
| 1734 | options: [ |
| 1735 | { |
| 1736 | name: ["-f", "--format"], |
| 1737 | args: { |
| 1738 | suggestions: [ |
| 1739 | { |
| 1740 | name: "plain", |
| 1741 | description: "Outputs the results as markdown", |
| 1742 | }, |
| 1743 | { |
| 1744 | name: "json", |
| 1745 | description: "Outputs the results as JSON", |
| 1746 | }, |
| 1747 | { |
| 1748 | name: "json-pretty", |
| 1749 | description: "Outputs the results as pretty print JSON", |
| 1750 | }, |
| 1751 | ], |
| 1752 | }, |
| 1753 | }, |
| 1754 | ], |
| 1755 | }, |
| 1756 | { |
| 1757 | name: "init", |
| 1758 | options: [ |
| 1759 | { |
| 1760 | name: "--rcfile", |
| 1761 | args: { |
| 1762 | name: "rcfile", |
| 1763 | isOptional: true, |
| 1764 | }, |
| 1765 | }, |
| 1766 | ], |
| 1767 | }, |
| 1768 | { |
| 1769 | name: ["internal", "_"], |
| 1770 | subcommands: [ |
| 1771 | { |
| 1772 | name: "local-state", |
| 1773 | subcommands: [ |
| 1774 | { |
| 1775 | name: "all", |
| 1776 | description: "List all the settings", |
| 1777 | options: [ |
| 1778 | { |
| 1779 | name: ["-f", "--format"], |
| 1780 | args: { |
| 1781 | name: "format", |
| 1782 | isOptional: true, |
| 1783 | suggestions: [ |
| 1784 | { |
| 1785 | name: "plain", |
| 1786 | description: "Outputs the results as markdown", |
| 1787 | }, |
| 1788 | { |
| 1789 | name: "json", |
| 1790 | description: "Outputs the results as JSON", |
| 1791 | }, |
| 1792 | { |
| 1793 | name: "json-pretty", |
| 1794 | description: "Outputs the results as pretty print JSON", |
| 1795 | }, |
| 1796 | ], |
| 1797 | }, |
| 1798 | }, |
| 1799 | { |
| 1800 | name: "--help", |
| 1801 | description: "Print help information", |
| 1802 | }, |
| 1803 | { |
| 1804 | name: "--version", |
| 1805 | description: "Print version information", |
| 1806 | }, |
| 1807 | ], |
| 1808 | }, |
| 1809 | ], |
| 1810 | options: [ |
| 1811 | { |
| 1812 | name: ["-f", "--format"], |
| 1813 | description: "Format of the output", |
| 1814 | args: { |
| 1815 | name: "format", |
| 1816 | isOptional: true, |
| 1817 | suggestions: [ |
| 1818 | { |
| 1819 | name: "plain", |
| 1820 | description: "Outputs the results as markdown", |
| 1821 | }, |
| 1822 | { |
| 1823 | name: "json", |
| 1824 | description: "Outputs the results as JSON", |
| 1825 | }, |
| 1826 | { |
| 1827 | name: "json-pretty", |
| 1828 | description: "Outputs the results as pretty print JSON", |
| 1829 | }, |
| 1830 | ], |
| 1831 | }, |
| 1832 | }, |
| 1833 | ], |
| 1834 | }, |
| 1835 | { |
| 1836 | name: "install", |
| 1837 | options: [ |
| 1838 | { |
| 1839 | name: "--daemon", |
| 1840 | exclusiveOn: ["--input-method"], |
| 1841 | }, |
| 1842 | { |
| 1843 | name: "--dotfiles", |
| 1844 | exclusiveOn: ["--input-method"], |
| 1845 | }, |
| 1846 | { |
| 1847 | name: "--input-method", |
| 1848 | description: "Prompt input method installation", |
| 1849 | exclusiveOn: ["--daemon", "--dotfiles"], |
| 1850 | }, |
| 1851 | { |
| 1852 | name: "--ssh", |
| 1853 | description: "Install only the ssh integration", |
| 1854 | }, |
| 1855 | ], |
| 1856 | }, |
| 1857 | { |
| 1858 | name: "uninstall", |
| 1859 | options: [ |
| 1860 | { |
| 1861 | name: "--ssh", |
| 1862 | description: "Uninstall only the ssh integration", |
| 1863 | }, |
| 1864 | ], |
| 1865 | }, |
| 1866 | ], |
| 1867 | }, |
| 1868 | { |
| 1869 | name: "plugins", |
| 1870 | subcommands: [ |
| 1871 | { |
| 1872 | name: "list", |
| 1873 | options: [ |
| 1874 | { |
| 1875 | name: ["-f", "--format"], |
| 1876 | args: { |
| 1877 | suggestions: [ |
| 1878 | { |
| 1879 | name: "plain", |
| 1880 | description: "Outputs the results as markdown", |
| 1881 | }, |
| 1882 | { |
| 1883 | name: "json", |
| 1884 | description: "Outputs the results as JSON", |
| 1885 | }, |
| 1886 | { |
| 1887 | name: "json-pretty", |
| 1888 | description: "Outputs the results as pretty print JSON", |
| 1889 | }, |
| 1890 | ], |
| 1891 | }, |
| 1892 | }, |
| 1893 | ], |
| 1894 | }, |
| 1895 | ], |
| 1896 | }, |
| 1897 | { |
| 1898 | name: "man", |
| 1899 | description: "Open manual page", |
| 1900 | options: [ |
| 1901 | { |
| 1902 | name: ["-h", "--help"], |
| 1903 | description: "Print help information", |
| 1904 | }, |
| 1905 | ], |
| 1906 | args: { |
| 1907 | name: "command", |
| 1908 | isOptional: true, |
| 1909 | }, |
| 1910 | }, |
| 1911 | ], |
| 1912 | }; |
| 1913 | |
| 1914 | exports.versions = versions; |
| 1915 | exports.completion = completion; |