Commit Graph

4 Commits

Author SHA1 Message Date
Bert Jacobs
edb42a0e3b Use filepath package throughout for Windows support
The "path" package supports only forward slashes in paths, like those
found in *nix operating systems or URLs.

Meanwhile Windows with its CP/M and QDOS ancestry requires drive letters
and backslashes, and thus the "filepath" package needs to be used.
2021-12-14 23:40:23 +01:00
Bert Jacobs
0ba821eb7e Pass result of "clobber path" prompt to caller, stop task
The end user would be prompted if a file is going to be overwritten,
but homemaker would still attempt to do so no matter the answer.

Move the retry-functionality of cleanPath inside this function so that
the function itself can return a boolean to indicate if the calling task
is free to continue. If the path is not clean then homemaker can just
move on to the next file or next task.
2021-09-13 18:23:39 +02:00
Josh Johnson
94f398c7a7 Don't create a blank template when parsing templates
This created a template with two entries within it; using
template.Execute would execute an empty template when you attempted to
use templates within a sub-directory
2017-09-04 17:03:33 -07:00
Lucas Bremgartner
a4b355ffbd Add template functionality 2017-06-30 11:10:26 +02:00