-
✨ Features
-
feat(template:filenames): template filenames now
solves #159
A template author can use those placeholders in file names.
For example, a project namedawesome
, with a file name{{project_name}}.rs
will be transformed toawesome.rs
during generation. read more..by @sassman
-
feat(template:choices): better ux for template choice parameters
for templates that contains parameters with a list of options + default option, users can now choose items from the
list via the arrow keys and don't need manual typing anymoreby @sassman
-
Feature: specify subdir in repo as template
solves / relates to #47 #78 #211 #291
TL;DR: a subfolder (e.g.
examples/template
) of a given git repo can be used for templatingIn the following example we assume the subfolder
tests/integration/helpers
contain some template:cargo generate --git https://github.com/cargo-generate/cargo-generate tests/integration/helpers
The great thing is that library / tool authors are now enabled to ship their templates as part of e.g.
theexamples/
folder directly from within their main repository.by @taurr
-
-
🛠️ Maintenance