{
  "id": "gem",
  "name": "RubyGems",
  "homepage": "https://guides.rubygems.org/command-reference/",
  "description": "RubyGems is a package management framework for Ruby.",
  "icon": "theSVG:rubygems",
  "executables": [
    "gem"
  ],
  "dotfiles": {
    "paths": [
      "~/.gemrc"
    ],
    "exclude": [
      "~/.gem/ruby/",
      "~/.gem/specs/"
    ],
    "secret": [
      "~/.gem/credentials",
      "[xdgData]/gem/credentials"
    ],
    "side_effect": false,
    "machine_lines": [
      {
        "file": "~/.gemrc",
        "format": "yaml",
        "match": {
          "key_path": [
            ":gempath"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "RubyGems",
    "description": "Install, update, remove and list Ruby gems.",
    "quality": "ai-draft",
    "base": "fig:gem",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/gem.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install gems",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/gem.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "gems",
            "label": "Gems",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "platform",
            "label": "Platform",
            "type": "string",
            "option": [
              "--platform"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install",
            "fields": [
              "gems",
              "platform"
            ],
            "required": [
              "gems"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "gems",
              "platform"
            ]
          }
        ]
      },
      {
        "path": [
          "update"
        ],
        "label": "Update gems",
        "description": "Name gems to update, or leave empty to update all.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/gem.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "gems",
            "label": "Gems",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "system",
            "label": "Update RubyGems itself",
            "type": "boolean",
            "option": [
              "--system"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "prerelease",
            "label": "Allow prerelease",
            "type": "boolean",
            "option": [
              "--prerelease"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "conservative",
            "label": "Keep satisfied gems",
            "type": "boolean",
            "option": [
              "--conservative"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "user_install",
            "label": "Install in home directory",
            "type": "boolean",
            "option": [
              "--user-install"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_document",
            "label": "Skip documentation",
            "type": "boolean",
            "option": [
              "--no-document",
              "-N"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "explain",
            "label": "Only explain",
            "type": "boolean",
            "option": [
              "--explain"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "update",
            "label": "Update gems",
            "fields": [
              "gems",
              "no_document"
            ],
            "required": []
          },
          {
            "id": "preview",
            "label": "Preview updates",
            "set": {
              "explain": [
                true
              ]
            },
            "fields": [
              "gems",
              "explain"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "gems",
              "system"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "prerelease",
              "conservative",
              "user_install",
              "no_document",
              "explain"
            ]
          }
        ]
      },
      {
        "path": [
          "uninstall"
        ],
        "label": "Uninstall gems",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/gem.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "gems",
            "label": "Gems",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "version",
            "label": "Version",
            "type": "string",
            "option": [
              "--version",
              "-v"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "all",
            "label": "All matching versions",
            "type": "boolean",
            "option": [
              "--all",
              "-a"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "executables",
            "label": "Remove executables without asking",
            "type": "boolean",
            "option": [
              "--executables",
              "-x"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ignore_dependencies",
            "label": "Ignore dependencies",
            "type": "boolean",
            "option": [
              "--ignore-dependencies",
              "-I"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Force",
            "type": "boolean",
            "option": [
              "--force"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "user_install",
            "label": "Also from home directory",
            "type": "boolean",
            "option": [
              "--user-install"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "uninstall",
            "label": "Uninstall",
            "fields": [
              "gems",
              "version"
            ],
            "required": [
              "gems"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "gems",
              "version"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "all",
              "executables",
              "ignore_dependencies",
              "force",
              "user_install"
            ]
          }
        ]
      },
      {
        "path": [
          "list"
        ],
        "label": "List gems",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/gem.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "regexp",
            "label": "Name pattern",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "local",
            "label": "Local only",
            "type": "boolean",
            "option": [
              "--local",
              "-l"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "remote",
            "label": "Remote only",
            "type": "boolean",
            "option": [
              "--remote",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "all",
            "label": "All versions",
            "type": "boolean",
            "option": [
              "--all",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exact",
            "label": "Exact name match",
            "type": "boolean",
            "option": [
              "--exact",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "details",
            "label": "Details",
            "type": "boolean",
            "option": [
              "--details",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "prerelease",
            "label": "Include prerelease",
            "type": "boolean",
            "option": [
              "--prerelease"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List installed",
            "fields": [
              "regexp",
              "exact"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "regexp",
              "local",
              "remote",
              "all",
              "exact",
              "details",
              "prerelease"
            ]
          }
        ]
      }
    ]
  }
}
