cookie icon indicating copy to clipboard operation
cookie copied to clipboard

Add '--template-dir' option

Open bbugyi200 opened this issue 6 years ago • 1 comments

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:

  1. 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).

  1. To specify that every template is relative to that directory. Example:
cookie -T mydir template:target

would initialize target using the template mydir/template.

bbugyi200 avatar Dec 02 '18 04:12 bbugyi200

Depends: #16

bbugyi200 avatar Dec 02 '18 04:12 bbugyi200