{
  "id": "yazi",
  "name": "Yazi",
  "homepage": "https://yazi-rs.github.io",
  "description": "A terminal file manager written in Rust, based on non-blocking async I/O.",
  "icon": "https://raw.githubusercontent.com/sxyazi/yazi/main/assets/logo.png",
  "executables": [
    "yazi",
    "ya"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/yazi/",
      "%APPDATA%/yazi/config/"
    ],
    "exclude": [
      "[configHome]/yazi/plugins/",
      "[configHome]/yazi/flavors/",
      "%APPDATA%/yazi/config/plugins/",
      "%APPDATA%/yazi/config/flavors/",
      "~/.local/state/yazi/",
      "%APPDATA%/yazi/state/",
      "[xdgCache]/yazi/",
      "%LOCALAPPDATA%/yazi/"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Open Yazi",
    "description": "Start the Yazi file manager in a directory. Event reporting and client-id 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": "help",
        "revision": "yazi --help (local)",
        "evidence": "Usage: yazi [OPTIONS] [ENTRIES]...\n  [ENTRIES]...  Set the current working entry\n      --cwd-file <CWD_FILE>            Write the cwd on exit to this file\n      --chooser-file <CHOOSER_FILE>    Write the selected files to this file on open fired\n      --clear-cache                    Clear the cache directory\n      --debug                          Print debug information\n"
      }
    ],
    "field": [
      {
        "id": "entry",
        "label": "Start location",
        "type": "path",
        "path": {
          "kind": "any",
          "role": "input"
        },
        "position": 0,
        "multiple": true,
        "sources": [
          "help"
        ]
      },
      {
        "id": "cwd_file",
        "label": "Write cwd on exit to",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "output"
        },
        "option": [
          "--cwd-file"
        ],
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      },
      {
        "id": "chooser_file",
        "label": "Write chosen files to",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "output"
        },
        "option": [
          "--chooser-file"
        ],
        "effect": "overwrite",
        "sources": [
          "help"
        ]
      },
      {
        "id": "clear_cache",
        "label": "Clear cache directory",
        "type": "boolean",
        "option": [
          "--clear-cache"
        ],
        "effect": "delete",
        "sources": [
          "help"
        ]
      },
      {
        "id": "debug",
        "label": "Print debug information",
        "type": "boolean",
        "option": [
          "--debug"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open in a directory",
        "fields": [
          "entry"
        ]
      },
      {
        "id": "chooser",
        "label": "Pick files to a list",
        "fields": [
          "chooser_file",
          "entry"
        ],
        "required": [
          "chooser_file"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "entry",
          "cwd_file",
          "chooser_file"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "clear_cache",
          "debug"
        ]
      }
    ]
  }
}
