Skip to main content

TEMPLATE

Constant TEMPLATE 

Source
pub const TEMPLATE: &str = "\
# coop hosts. Uncomment and edit -- the section name is what you pass to --host.
#
# One block per host. `target` is the only key worth setting by hand; every
# other line below shows its default and can stay commented out.
#
# [hosts.build]
# target      = \"build\"                    # ssh target (default: section name)
# socket      = \"~/.ssh/coop/build.sock\"   # coop's own ControlPath
# tmux_socket = \"coop\"                     # private tmux server
# max_running = 4                          # warn past this; not a queue
# default_cwd = \"~/work\"                   # where `run` starts, unless --cwd
# keep_days   = 14                         # prune finished jobs older than this
# max_log_bytes = 104857600                # 100MB; longer logs are truncated
# max_job_secs = 0                         # remote runtime cap; 0 is unbounded
#
# Then open the control master, once per ControlPersist window. This may ask
# you to touch a hardware key; coop cannot do it for you:
#
#   ssh -MNf -S ~/.ssh/coop/build.sock -o ControlPersist=8h build
";
Expand description

Where the config lives: ~/.config/coop/config.toml. Written to the config path the first time coop runs without one.

Every host is commented out, so the file is a prompt rather than a guess: coop cannot know a host name, and inventing one would produce confusing failures against a target that does not exist.