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 }
[[commands.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]
| `--list` | Lists all available layouts in `~/.teamocil`
| `--layout` | Takes a custom file path to a YAML layout file instead of `[layout-name]`
| `--here` | Uses the current window as the layout’s first window
| `--edit` | Opens the layout file with `$EDITOR` instead of executing it
| `--show` | Shows the layout content instead of executing it
"""
[[commands.field]]
id = "layout_name"
label = "Layout name"
description = "Name of a file in ~/.teamocil, without the .yml extension."
type = "string"
position = 0
sources = ["readme"]
[[commands.field]]
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"]
[[commands.field]]
id = "here"
label = "Use current window"
type = "boolean"
option = ["--here"]
sources = ["readme"]
[[commands.field]]
id = "edit"
label = "Edit instead of run"
type = "boolean"
option = ["--edit"]
sources = ["readme"]
[[commands.field]]
id = "show"
label = "Show instead of run"
type = "boolean"
option = ["--show"]
sources = ["readme"]
[[commands.field]]
id = "list"
label = "List layouts"
type = "boolean"
option = ["--list"]
sources = ["readme"]
[[commands.task]]
id = "run"
label = "Run a layout"
fields = ["layout_name", "here"]
required = ["layout_name"]
[[commands.task]]
id = "edit"
label = "Edit a layout"
fields = ["layout_name", "edit"]
required = ["layout_name", "edit"]
set = { edit = [true] }
[[commands.task]]
id = "list"
label = "List layouts"
fields = ["list"]
required = ["list"]
set = { list = [true] }
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["layout_name", "here", "edit", "show", "list"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["layout_file"]