3 ms·
Unless I'm missing something, it seems like you could just make your template by hand with files and folders and just copy that folder to get the same result?
by spicybright 3y ago
Unless I'm missing something, it seems like you could just make your template by hand with files and folders and just copy that folder to get the same result?
If you added simple variable substitution to use in filenames and file contents that would kick it up quite a few notches. Especially if you could use the result of bash command instead of static text.
- cemister 3y agoVariables were added now
- spicybright 3y agoAyyy nice work! You actually implemented it exactly how I would have lol
- cemister 3y agoAh, thank you, one correction: not me but a contributor :)
- kgeist 3y agoWe have a tool to quickly create microservices from a template; from what I remember, it's just a precreated folder with a Go project template which is copied over to the destination with a few fixups like "change the dummy package name to the target name". The hard part is not the copying part, it's to figure out what code should go in the template so that it was useful for most microservices. P.S. Judging by [0], it wants you to paste template code inside YAML files. If you just precreate an actual project folder on disk and use it as a template (with, say, regexps for fixups), it's going to be easier to work with, as I can edit the template files in the IDE of my choice. Our microservice template is relatively large and changes quite often, it would be a nightmare to edit it and debug it via YAML files. https://github.com/cemister/scaffold-configs/blob/master/cpp.yaml https://github.com/cemister/scaffold-configs/blob/master/cpp...