cookie
cookie copied to clipboard
Add '--template-dir' option
The corresponding short-option could be -T
. This option would accept a mandatory argument which must be a sub-directory of the configured cookie template directory. This option can be used in one of two ways:
- To specify that the entire directory should be mirrored. Example:
cookie -T mydir
would prompt the user for a project_name
and then create a new directory named project_name
which mirrors mydir
. Next, each file in the new directory would be processed by cookie's template rendering engine and opened in an editor (one at a time).
- To specify that every template is relative to that directory. Example:
cookie -T mydir template:target
would initialize target
using the template mydir/template
.
Depends: #16