{
  "id": "teamocil",
  "name": "teamocil",
  "homepage": "https://github.com/remi/teamocil",
  "description": "A simple tool used to automatically create windows and panes in tmux with YAML files.",
  "executables": [
    "teamocil"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.teamocil/"
    ],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Run a tmux layout",
    "description": "Start a teamocil layout, or show, edit or list layouts. Pick one job at a time; layout contents are not edited here.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "readme",
        "kind": "manual",
        "url": "https://raw.githubusercontent.com/remi/teamocil/HEAD/README.md",
        "revision": "HEAD 2026-10-27",
        "evidence": "$ teamocil [options] [layout-name]\n\n| `--list`    | Lists all available layouts in `~/.teamocil`\n\n| `--layout`  | Takes a custom file path to a YAML layout file instead of `[layout-name]`\n| `--here`    | Uses the current window as the layout’s first window\n| `--edit`    | Opens the layout file with `$EDITOR` instead of executing it\n| `--show`    | Shows the layout content instead of executing it\n"
      }
    ],
    "field": [
      {
        "id": "layout_name",
        "label": "Layout name",
        "description": "Name of a file in ~/.teamocil, without the .yml extension.",
        "type": "string",
        "position": 0,
        "sources": [
          "readme"
        ]
      },
      {
        "id": "layout_file",
        "label": "Layout file",
        "description": "Use a YAML file at a custom path instead of a layout name.",
        "type": "path",
        "option": [
          "--layout"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "readme"
        ]
      },
      {
        "id": "here",
        "label": "Use current window",
        "type": "boolean",
        "option": [
          "--here"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "edit",
        "label": "Edit instead of run",
        "type": "boolean",
        "option": [
          "--edit"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "show",
        "label": "Show instead of run",
        "type": "boolean",
        "option": [
          "--show"
        ],
        "sources": [
          "readme"
        ]
      },
      {
        "id": "list",
        "label": "List layouts",
        "type": "boolean",
        "option": [
          "--list"
        ],
        "sources": [
          "readme"
        ]
      }
    ],
    "task": [
      {
        "id": "run",
        "label": "Run a layout",
        "fields": [
          "layout_name",
          "here"
        ],
        "required": [
          "layout_name"
        ]
      },
      {
        "id": "edit",
        "label": "Edit a layout",
        "fields": [
          "layout_name",
          "edit"
        ],
        "required": [
          "layout_name",
          "edit"
        ],
        "set": {
          "edit": [
            true
          ]
        }
      },
      {
        "id": "list",
        "label": "List layouts",
        "fields": [
          "list"
        ],
        "required": [
          "list"
        ],
        "set": {
          "list": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "layout_name",
          "here",
          "edit",
          "show",
          "list"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "layout_file"
        ]
      }
    ]
  }
}
