{
  "id": "gum",
  "name": "Gum",
  "description": "A tool for glamorous shell scripts.",
  "homepage": "https://github.com/charmbracelet/gum",
  "executables": [
    "gum"
  ],
  "commands": {
    "format": 1,
    "label": "Gum",
    "description": "Interactive prompts for shell scripts. Styling options are left out.",
    "quality": "ai-draft",
    "base": "fig:gum",
    "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/gum.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "choose"
        ],
        "label": "Choose from a list",
        "description": "Choose an option from a list of choices.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/gum.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "options",
            "label": "Options",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "limit",
            "label": "Maximum picks",
            "type": "integer",
            "option": [
              "--limit"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_limit",
            "label": "Unlimited picks",
            "type": "boolean",
            "option": [
              "--no-limit"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "height",
            "label": "List height",
            "type": "integer",
            "option": [
              "--height"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cursor",
            "label": "Cursor symbol",
            "type": "string",
            "option": [
              "--cursor"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "selected",
            "label": "Preselected options",
            "type": "string",
            "option": [
              "--selected"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "choose",
            "label": "Choose",
            "fields": [
              "options",
              "limit"
            ],
            "required": [
              "options"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "options",
              "limit",
              "no_limit"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "height",
              "cursor",
              "selected"
            ]
          }
        ]
      },
      {
        "path": [
          "confirm"
        ],
        "label": "Ask to confirm",
        "description": "Ask a user to confirm an action.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/gum.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "prompt",
            "label": "Prompt",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "affirmative",
            "label": "Yes label",
            "type": "string",
            "option": [
              "--affirmative"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "negative",
            "label": "No label",
            "type": "string",
            "option": [
              "--negative"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "default",
            "label": "Default to yes",
            "type": "boolean",
            "option": [
              "--default"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "timeout",
            "label": "Timeout",
            "description": "e.g. 10s.",
            "type": "string",
            "option": [
              "--timeout"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "confirm",
            "label": "Confirm",
            "fields": [
              "prompt",
              "affirmative",
              "negative"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "prompt",
              "affirmative",
              "negative"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "default",
              "timeout"
            ]
          }
        ]
      },
      {
        "path": [
          "input"
        ],
        "label": "Prompt for input",
        "description": "Prompt for a single line of input.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/gum.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "placeholder",
            "label": "Placeholder",
            "type": "string",
            "option": [
              "--placeholder"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "prompt",
            "label": "Prompt",
            "type": "string",
            "option": [
              "--prompt"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "value",
            "label": "Initial value",
            "type": "string",
            "option": [
              "--value"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "password",
            "label": "Mask input",
            "type": "boolean",
            "option": [
              "--password"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "char_limit",
            "label": "Max length",
            "type": "integer",
            "option": [
              "--char-limit"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "width",
            "label": "Width",
            "type": "integer",
            "option": [
              "--width"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "input",
            "label": "Input",
            "fields": [
              "placeholder",
              "prompt",
              "value"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "placeholder",
              "prompt",
              "value",
              "password"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "char_limit",
              "width"
            ]
          }
        ]
      }
    ]
  }
}
