{
  "id": "gitmux",
  "name": "gitmux",
  "homepage": "https://github.com/arl/gitmux",
  "description": "Git status in tmux status bar.",
  "executables": [
    "gitmux"
  ],
  "dotfiles": {
    "paths": [
      "~/.gitmux.conf"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Print git status for tmux",
    "description": "Print the status of a Git working tree as a tmux format string.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/arl/gitmux/blob/main/README.md",
        "revision": "v0.11.5",
        "evidence": "Usage: gitmux [options] [dir]\n  -cfg FILE       read gitmux config from FILE.\n  -printcfg       prints default configuration file.\n  -dbg            outputs Git status as JSON and print errors.\n  -timeout DUR    exits if still running after given duration (ex: 2s, 500ms).\n"
      }
    ],
    "field": [
      {
        "id": "dir",
        "label": "Directory",
        "description": "Defaults to the working directory.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "directory",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "cfg",
        "label": "Config file",
        "type": "path",
        "option": [
          "-cfg"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "printcfg",
        "label": "Print default config",
        "type": "boolean",
        "option": [
          "-printcfg"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "dbg",
        "label": "Debug (JSON status)",
        "type": "boolean",
        "option": [
          "-dbg"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "timeout",
        "label": "Timeout",
        "description": "For example 2s or 500ms.",
        "type": "string",
        "option": [
          "-timeout"
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "status",
        "label": "Status of a directory",
        "fields": [
          "dir",
          "cfg",
          "timeout"
        ],
        "required": []
      },
      {
        "id": "printcfg",
        "label": "Print default config",
        "fields": [
          "printcfg"
        ],
        "required": [
          "printcfg"
        ],
        "set": {
          "printcfg": [
            true
          ]
        },
        "lock": [
          "printcfg"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "dir",
          "cfg",
          "timeout",
          "printcfg",
          "dbg"
        ]
      }
    ]
  }
}
