tmrts / boilr

:zap: boilerplate template manager that generates files or directories from template repositories
Apache License 2.0
1.73k stars 118 forks source link

Allow hyphen and underscore in template-tags #17

Closed ax-nathan closed 8 years ago

ax-nathan commented 8 years ago

It would be nice to use - and _ in template tags. Is there a reason why not to do this?

ax-nathan commented 8 years ago

Happy to do a quick PR, if you're OK with it...

tmrts commented 8 years ago

Nathan thanks for trying out boilr.

I don't have a problem with hypens or underscores in the template tags, thank you for bringing it up. The change can be made by modifying the validation pattern for the related commands like template save, template use, etc. (see https://github.com/tmrts/boilr/blob/master/pkg/cmd/save.go#L24).

Feel free to do it if you can, if not I'll implement it when I get a chance

rawkode commented 8 years ago

Hi @ax-nathan - if you don't have the time to work on this, just let me know and I'll pick it up. Nice idea though 👍

rawkode commented 8 years ago

As there's been no reply on this for over a month, I'll pick this up this afternoon