okkur / reposeed-server

Apache License 2.0
4 stars 2 forks source link

Choose one repository to get template files and use them in both server and cli #2

Closed stp-ip closed 6 years ago

stp-ip commented 6 years ago

Probably best to let reposeed use packr to pack up the templates and reposeed-server just imports this. Happy to discuss the pros and cons.

erbesharat commented 6 years ago

So I think we should generate templates.go file using packr command in the reposeed and add a method to get the box from the file and use it in both reposeed and reposeed-server. We also should add packr clean and packr commands in the reposeed's Makefile.

stp-ip commented 6 years ago

Sounds like a sane approach. That will already reduce the amount of duplication quite a bit and at the same time enhance the reposeed side of things.