{
  "id": "maxima",
  "name": "Maxima",
  "homepage": "https://maxima.sourceforge.io/",
  "description": "A system for the manipulation of symbolic and numerical expressions.",
  "executables": [
    "maxima"
  ],
  "dotfiles": {
    "paths": [
      "~/.maxima/maxima-init.mac",
      "~/.maxima/maxima-init.lisp",
      "~/.maxima/maximarc"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Run Maxima",
    "description": "Start Maxima interactively, or run a batch file or string noninteractively. Lisp selection, server mode and Lisp options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/maxima/maxima.1.en.html",
        "evidence": "-b file,\n--batch=file\nProcess file in noninteractive mode.\n--batch-string=string\nProcess string in noninteractive mode.\n-r string,\n--run-string=string\nProcess string in interactive mode.\n--init-mac=file\nLoad the Maxima initialization file file at startup.\n-q, --quiet\nSuppress Maxima start-up message.\n-Q,\n--quit-on-error\n--very-quiet\n--no-init,\n--norc\n--suppress-input-echo\n--userdir=directory\n"
      }
    ],
    "field": [
      {
        "id": "batch",
        "label": "Batch file",
        "type": "path",
        "option": [
          "--batch",
          "-b"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "batch_string",
        "label": "Batch string",
        "type": "string",
        "option": [
          "--batch-string"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "run_string",
        "label": "Run string then stay interactive",
        "type": "string",
        "option": [
          "--run-string",
          "-r"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "init_mac",
        "label": "Init file",
        "type": "path",
        "option": [
          "--init-mac"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "userdir",
        "label": "User directory",
        "type": "path",
        "option": [
          "--userdir"
        ],
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet start-up",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "very_quiet",
        "label": "Very quiet",
        "type": "boolean",
        "option": [
          "--very-quiet"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "quit_on_error",
        "label": "Quit on error (exit code 1)",
        "type": "boolean",
        "option": [
          "--quit-on-error",
          "-Q"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_init",
        "label": "Skip init files",
        "type": "boolean",
        "option": [
          "--no-init",
          "--norc"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_echo",
        "label": "Suppress input echo",
        "type": "boolean",
        "option": [
          "--suppress-input-echo"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "batch_file",
        "label": "Run a batch file",
        "fields": [
          "batch",
          "quiet",
          "quit_on_error",
          "no_echo"
        ],
        "required": [
          "batch"
        ]
      },
      {
        "id": "evaluate",
        "label": "Evaluate an expression",
        "fields": [
          "batch_string",
          "very_quiet",
          "quit_on_error"
        ],
        "required": [
          "batch_string"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "batch",
          "batch_string",
          "run_string",
          "quiet",
          "quit_on_error"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "init_mac",
          "userdir",
          "very_quiet",
          "no_init",
          "no_echo"
        ]
      }
    ]
  }
}
