{
  "id": "gnuplot",
  "name": "gnuplot",
  "homepage": "https://gnuplot.info/",
  "description": "An interactive, command-line plotting program.",
  "executables": [
    "gnuplot"
  ],
  "dotfiles": {
    "paths": [
      "~/.gnuplot",
      "~/.config/gnuplot/gnuplotrc"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Run gnuplot script",
    "description": "Load script files or run inline commands, then exit. Terminal-specific X11 options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/bookworm/gnuplot-nox/gnuplot.1.en.html",
        "revision": "5.4.4",
        "evidence": "gnuplot [X11 options] [options] [file ...]\n-p, --persist lets plot windows survive after main gnuplot\n-d, --default settings. Do not read from gnuplotrc or\n-e \"command list\" executes the requested commands\n-s, --slow wait for slow font initialization rather than\n"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Script files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "command",
        "label": "Commands",
        "description": "Gnuplot commands to run before loading the next file, for example: set terminal png; plot sin(x).",
        "type": "string",
        "option": [
          "-e"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "persist",
        "label": "Keep plot windows open",
        "type": "boolean",
        "option": [
          "--persist",
          "-p"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "default",
        "label": "Skip gnuplotrc",
        "type": "boolean",
        "option": [
          "--default",
          "-d"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "slow",
        "label": "Wait for fonts",
        "type": "boolean",
        "option": [
          "--slow",
          "-s"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "run-script",
        "label": "Run script",
        "fields": [
          "files",
          "persist"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "inline",
        "label": "Run inline commands",
        "fields": [
          "command",
          "persist"
        ],
        "required": [
          "command"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "command",
          "persist"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "default",
          "slow"
        ]
      }
    ]
  }
}
