{
  "id": "mdfried",
  "name": "mdfried",
  "homepage": "https://github.com/benjajaja/mdfried",
  "executables": [
    "mdfried"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/mdfried/config.toml"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "View markdown",
    "description": "Open a markdown file, URL or github:owner/repo in the viewer. Graphics-protocol debugging and logging options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "src",
        "kind": "help",
        "url": "https://github.com/benjajaja/mdfried/blob/master/src/main.rs",
        "revision": "master 2026-10",
        "evidence": "The markdown source.\\nCan be a file path, a URL, a github repo in \\\"github:[owner]/[repo]\\\" format, or '-' or omit, for stdin.\n-d --\"deep-fry\" \"Extra deep fried images.\"\n-w --\"watch\" \"Watch markdown file, reload on changes.\"\n-s --\"setup\" \"Force font setup (again).\"\n--\"print-config\" \"Write out a mostly complete config file example to stdout.\"\n--\"no-cap-checks\" \"Do not query the terminal stdin for capabilities.\"\nSpelled on the command line (clap quotes long names in source): --watch --deep-fry --setup --print-config --no-cap-checks\nREADME: Use `--setup` to force the font-setup again; `mdfried --print-config` prints out a full example config\n"
      }
    ],
    "field": [
      {
        "id": "source",
        "label": "Markdown source",
        "description": "File path, URL, github:owner/repo, or - for stdin.",
        "type": "string",
        "position": 0,
        "sources": [
          "src"
        ]
      },
      {
        "id": "watch",
        "label": "Watch and reload",
        "type": "boolean",
        "option": [
          "--watch",
          "-w"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "deep_fry",
        "label": "Deep-fry images",
        "type": "boolean",
        "option": [
          "--deep-fry",
          "-d"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "setup",
        "label": "Redo font setup",
        "type": "boolean",
        "option": [
          "--setup",
          "-s"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "no_cap_checks",
        "label": "Skip capability checks",
        "type": "boolean",
        "option": [
          "--no-cap-checks"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "print_config",
        "label": "Print example config",
        "type": "boolean",
        "option": [
          "--print-config"
        ],
        "sources": [
          "src"
        ]
      }
    ],
    "task": [
      {
        "id": "view",
        "label": "View a file",
        "fields": [
          "source",
          "watch"
        ],
        "required": [
          "source"
        ]
      },
      {
        "id": "config",
        "label": "Print example config",
        "fields": [
          "print_config"
        ],
        "required": [
          "print_config"
        ],
        "set": {
          "print_config": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "source",
          "watch",
          "deep_fry"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "setup",
          "no_cap_checks",
          "print_config"
        ]
      }
    ]
  }
}
