c8r / initit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement: Make Template Depth Configurable

edm00se opened this issue · comments

Currently, when the extraction of the template is performed, the --strip=3 depth is set statically.

I'm working on a project that makes use of a template at the root of the project repository, so being able to set the depth to 1 makes sense. Bottom line, it'd be great for this to be a configurable option.

Thanks for making a great utility.

Why not get the depth from paths.length?

@pomber there may be something to that, I’ll have another look when I get a chance.

That worked out pretty well and seems a much cleaner way of going about it. I've updated my PR (#4) to reflect it. Thanks @pomber.