Parses all files residing in files and puts them where told.
To put the files into the current work dir:
go run main.go
To put the files to a custom path:
go run main.go -targetDir=/home/user/go/src/github.com/playnet-public/new-project
After running the code you might want to call make deps
, dep init
and git init
.
The current setup generates our own project template using the following variables:
export TEMP_ORG=PlayNet
export TEMP_NAME=new-project
export TEMP_KEY=new-project
export TEMP_GIT_ORG=playnet-public
export TEMP_GIT_HOST=github.com
export TEMP_DOCKER_HOST=quay.io
export TEMP_DOCKER_ORG=playnet
export TEMP_DOCKER_IMAGE=${TEMP_NAME}
export TEMP_DOCKER_MAINTAINER="PlayNet <[email protected]>"
Do what you want with it :-) Issues, PR's and Feedback are highly welcome. Some of the stuff we use in our project templates is based on the great work at github.com/kolide/kit To talk with us, stop by here: PlayNet Discord.