#
# Config
# Every field here is (required). 
#

baseServicePort    = 8000   # The port to start incrementing from for auto-assigned ports.
baseSessionName    = "orch" # The prefix for all session names.
singleSessionMode  = true   # If true, every running tmux session prefixed with `baseSessionName` will first be closed before launching new ones.
overwritePaneLabel = true   # If true, use ANSI escape codes to overwrite each tmux window's label with the service's label. Only works if `set -g pane-border-status top` is present in `~/.tmux.conf`.

#
# Services
#

[[services]]
label             = "service"            # The label given to the service, and to its window in tmux. Default: The path's basename.
group             = "backend"            # (required) Group to which this service belongs.
path              = "~/path/to/service"  # (required) Path to the service's root directory.
delay             = 0                    # Delay, in ms, to wait before launching the service. Default: 0.
env               = {}                   # Environment variables in the service. Default: empty.
selectedByDefault = false                # Whether or not the service is selected by default in the CLI. Default: false.
commands          = ["npm launch"]       # Commands tmux will run to launch the service. Default: defaultCommands for this service's group.
alwaysRun         = false                # If true, hides this service in the CLI and always runs it. Note: if every service in a group is `alwaysRun`, the entire group will be hidden in the CLI. Default: false.

#
# Groups
# Per-group config. Every field here is (optional).
#

[groups.backend]
defaultCommands = ["npm start"] # The default commands to run for every service belonging to this group. Overriden by service's `commands` field if present.
