{
  "id": "moc",
  "name": "MOC",
  "homepage": "https://moc.daper.net/",
  "description": "Music On Console audio player.",
  "executables": [
    "mocp"
  ],
  "platforms": [
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.moc/config",
      "~/.moc/themes/"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Control MOC",
    "description": "Start the player on a folder, queue or append files without opening the interface, or send transport commands to a running server. Theme, config and option overrides 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": "manual",
        "url": "https://manpages.debian.org/unstable/moc/mocp.1.en.html",
        "revision": "2.6.0~svn-r3005-12",
        "evidence": "mocp [OPTIONS] [FILE|DIR ...]\n-m, --music-dir\n-q, --enqueue\n-a, --append\n-c, --clear\n-p, --play\n-l, --playit\n-f, --next\n-r, --previous\n-s, --stop\n-x, --exit\n-P, --pause\n-U, --unpause\n-G, --toggle-pause\n-i, --info\n"
      }
    ],
    "field": [
      {
        "id": "music_dir",
        "label": "Start in MusicDir",
        "type": "boolean",
        "option": [
          "--music-dir",
          "-m"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "enqueue",
        "label": "Add to queue (no interface)",
        "type": "boolean",
        "option": [
          "--enqueue",
          "-q"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "append",
        "label": "Append to playlist (no interface)",
        "type": "boolean",
        "option": [
          "--append",
          "-a"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "clear",
        "label": "Clear playlist",
        "type": "boolean",
        "option": [
          "--clear",
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "play",
        "label": "Play from first item",
        "type": "boolean",
        "option": [
          "--play",
          "-p"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "playit",
        "label": "Play files without touching playlist",
        "type": "boolean",
        "option": [
          "--playit",
          "-l"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "toggle_pause",
        "label": "Toggle pause",
        "type": "boolean",
        "option": [
          "--toggle-pause",
          "-G"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "next",
        "label": "Next song",
        "type": "boolean",
        "option": [
          "--next",
          "-f"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "previous",
        "label": "Previous song",
        "type": "boolean",
        "option": [
          "--previous",
          "-r"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "stop",
        "label": "Stop playing",
        "type": "boolean",
        "option": [
          "--stop",
          "-s"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "info",
        "label": "Print current file info",
        "type": "boolean",
        "option": [
          "--info",
          "-i"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "exit",
        "label": "Bring down the server",
        "type": "boolean",
        "option": [
          "--exit",
          "-x"
        ],
        "effect": "exec",
        "sources": [
          "help"
        ]
      },
      {
        "id": "files",
        "label": "Files or directories",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "open",
        "label": "Open player on files",
        "fields": [
          "files",
          "music_dir"
        ]
      },
      {
        "id": "append_files",
        "label": "Append to playlist",
        "fields": [
          "append",
          "files"
        ],
        "required": [
          "files"
        ],
        "set": {
          "append": [
            true
          ]
        },
        "lock": [
          "append"
        ]
      },
      {
        "id": "toggle",
        "label": "Toggle pause",
        "fields": [
          "toggle_pause"
        ],
        "set": {
          "toggle_pause": [
            true
          ]
        },
        "lock": [
          "toggle_pause"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "music_dir",
          "enqueue",
          "append",
          "clear",
          "play",
          "playit",
          "toggle_pause",
          "next",
          "previous",
          "stop",
          "info",
          "exit"
        ]
      }
    ]
  }
}
