{
  "id": "cmus",
  "name": "cmus",
  "homepage": "https://cmus.github.io/",
  "executables": [
    "cmus"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/cmus/"
    ],
    "exclude": [
      "[configHome]/cmus/autosave"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Start cmus",
    "description": "Start the cmus music player or list its plugins.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "manual",
        "url": "https://github.com/cmus/cmus/blob/master/Doc/cmus.txt",
        "revision": "2026-10-27",
        "evidence": "cmus [options]\n--listen ADDR   Listen on ADDR (UNIX socket) instead of $CMUS_SOCKET or $XDG_RUNTIME_DIR/cmus-socket.\n--plugins   List available plugins and exit.\n--show-cursor   Always display the cursor. This is useful for screen readers.\n"
      }
    ],
    "field": [
      {
        "id": "listen",
        "label": "Listen address",
        "description": "UNIX socket or host[:port]. host[:port] is insecure.",
        "type": "string",
        "option": [
          "--listen"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "show_cursor",
        "label": "Always show cursor",
        "type": "boolean",
        "option": [
          "--show-cursor"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "plugins",
        "label": "List plugins and exit",
        "type": "boolean",
        "option": [
          "--plugins"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "start",
        "label": "Start player",
        "fields": [
          "listen",
          "show_cursor"
        ],
        "required": []
      },
      {
        "id": "plugins",
        "label": "List plugins",
        "set": {
          "plugins": [
            true
          ]
        },
        "lock": [
          "plugins"
        ],
        "fields": [
          "plugins"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "listen",
          "show_cursor",
          "plugins"
        ]
      }
    ]
  }
}
