{
  "id": "ruby",
  "name": "Ruby",
  "homepage": "https://www.ruby-lang.org",
  "description": "A dynamic, open source programming language with a focus on simplicity and productivity.",
  "icon": "SimpleIcons:ruby",
  "executables": [
    "ruby",
    "irb"
  ],
  "dotfiles": {
    "paths": [
      "~/.irbrc",
      "~/.config/irb/irbrc"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Run Ruby",
    "description": "Run a script or an inline expression. Input-processing switches such as -n, -p and -i are left out.",
    "quality": "ai-draft",
    "base": "fig:ruby",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/ruby.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "expression",
        "label": "Inline script (-e)",
        "type": "string",
        "option": [
          "-e"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "script",
        "label": "Script file",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "args",
        "label": "Script arguments",
        "type": "string",
        "position": 1,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "check",
        "label": "Check syntax only",
        "type": "boolean",
        "option": [
          "-c"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "warnings",
        "label": "Warnings on",
        "type": "boolean",
        "option": [
          "-w"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "--verbose",
          "-v"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "debug",
        "label": "Debug mode",
        "type": "boolean",
        "option": [
          "--debug",
          "-d"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "require",
        "label": "Require library",
        "type": "string",
        "option": [
          "-r"
        ],
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "include",
        "label": "Load path",
        "type": "path",
        "option": [
          "-I"
        ],
        "multiple": true,
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "chdir",
        "label": "Change directory first",
        "type": "path",
        "option": [
          "-C"
        ],
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "run",
        "label": "Run a script",
        "fields": [
          "script",
          "args",
          "warnings",
          "require",
          "include"
        ],
        "required": [
          "script"
        ]
      },
      {
        "id": "eval",
        "label": "Run an expression",
        "fields": [
          "expression",
          "require"
        ],
        "required": [
          "expression"
        ]
      },
      {
        "id": "syntax",
        "label": "Check syntax",
        "fields": [
          "script",
          "check"
        ],
        "required": [
          "script",
          "check"
        ],
        "set": {
          "check": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "script",
          "args",
          "expression",
          "check",
          "warnings"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "verbose",
          "debug",
          "require",
          "include",
          "chdir"
        ]
      }
    ]
  }
}
