stack icon indicating copy to clipboard operation
stack copied to clipboard

COPY <src> <dst> command

Open tj opened this issue 11 years ago • 0 comments

suppose you had foo.conf:

exec /path/to/bin --cluster {name} \
  --some-option \
  --another-option

the following would create /etc/init/foo.conf where {name} is prompted for a value or accepted via --name:

# Creating foo.conf as {name}
copy foo.conf /etc/init/foo.conf

the canonical version would be something like:

COPY /etc/init/foo.conf {
exec /path/to/bin --cluster {name} \
  --some-option \
  --another-option
}

tj avatar Aug 22 '14 06:08 tj