{
  "id": "quickmail",
  "name": "Quickmail",
  "description": "Terminal-based tool for sending email.",
  "executables": [
    "quickmail"
  ],
  "commands": {
    "format": 1,
    "label": "Quickmail",
    "description": "Send an email from the terminal. Init, clear and template management are not covered.",
    "quality": "ai-draft",
    "base": "fig:quickmail",
    "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/quickmail.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "send"
        ],
        "label": "Send mail",
        "description": "Compose a mail with receiver, subject, body and an optional attachment.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/quickmail.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "receiver",
            "label": "Receiver",
            "type": "string",
            "option": [
              "-r",
              "--receiver"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "subject",
            "label": "Subject",
            "type": "string",
            "option": [
              "--subject"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "body",
            "label": "Body",
            "type": "string",
            "option": [
              "-b",
              "--body"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "attachment",
            "label": "Attachment",
            "type": "path",
            "option": [
              "-a",
              "--attachment"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "template",
            "label": "Template",
            "type": "string",
            "option": [
              "-t",
              "--template"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "lessgo",
            "label": "Skip confirmation and send",
            "type": "boolean",
            "option": [
              "-l",
              "--lessgo"
            ],
            "effect": "exec",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "send",
            "label": "Send a mail",
            "fields": [
              "receiver",
              "subject",
              "body",
              "attachment"
            ],
            "required": [
              "receiver",
              "subject"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "receiver",
              "subject",
              "body",
              "attachment"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "template",
              "lessgo"
            ]
          }
        ]
      }
    ]
  }
}
