{
  "id": "glow",
  "name": "Glow",
  "homepage": "https://github.com/charmbracelet/glow",
  "description": "A terminal based markdown reader designed from the ground up to bring out the beauty and power of the CLI.",
  "executables": [
    "glow"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/glow/glow.yml",
      "[preferences]/glow/glow.yml",
      "%LOCALAPPDATA%/glow/Config/glow.yml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Render Markdown",
    "description": "Render a Markdown file or directory in the terminal with Glow. The stash subcommand is left out.",
    "quality": "ai-draft",
    "base": "fig:glow",
    "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/glow.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "source",
        "label": "File or directory",
        "description": "Leave empty to open the file browser in the current directory.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "pager",
        "label": "Use pager",
        "description": "Display the output in a pager.",
        "type": "boolean",
        "option": [
          "--pager",
          "-p"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "style",
        "label": "Style",
        "type": "string",
        "option": [
          "--style",
          "-s"
        ],
        "description": "A built-in style name or the path to a JSON style.",
        "suggestions": [
          {
            "value": "auto",
            "label": "auto"
          },
          {
            "value": "light",
            "label": "light"
          },
          {
            "value": "dark",
            "label": "dark"
          },
          {
            "value": "notty",
            "label": "notty"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "width",
        "label": "Wrap width",
        "type": "integer",
        "option": [
          "--width",
          "-w"
        ],
        "description": "Word-wrap at this column.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "all",
        "label": "Show system files",
        "description": "Show hidden files and directories (browser mode only).",
        "type": "boolean",
        "option": [
          "--all",
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "local",
        "label": "Local only",
        "description": "No network access (browser mode only).",
        "type": "boolean",
        "option": [
          "--local",
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "read",
        "label": "Read a file",
        "fields": [
          "source",
          "style",
          "width",
          "pager"
        ],
        "required": [
          "source"
        ]
      },
      {
        "id": "browse",
        "label": "Browse a folder",
        "fields": [
          "source",
          "all",
          "local",
          "style"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "source",
          "pager",
          "style",
          "width"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "all",
          "local",
          "config"
        ]
      }
    ]
  }
}
