initit icon indicating copy to clipboard operation
initit copied to clipboard

Enhancement: Make Template Depth Configurable

Open edm00se opened this issue 7 years ago • 3 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.

edm00se avatar Oct 30 '18 03:10 edm00se

Why not get the depth from paths.length?

pomber avatar May 25 '19 13:05 pomber

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

edm00se avatar May 25 '19 20:05 edm00se

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.

edm00se avatar Jun 07 '19 03:06 edm00se