Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add '--template-dir' option #19

Open
bbugyi200 opened this issue Dec 2, 2018 · 1 comment
Open

Add '--template-dir' option #19

bbugyi200 opened this issue Dec 2, 2018 · 1 comment

Comments

@bbugyi200
Copy link
Owner

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
Copy link
Owner Author

Depends: #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant