ginit
This utility rewritten in Go for practice purpose. Initialize some files by template. Will work also on windows (maybe).
Build
$ git clone https://github.com/kvrumi/ginit.git
$ cd ginit
$ go build
Usage
Simply launch with --help
flag or:
$ ginit <dir-name> [A..Z]
...
$ ginit test A B C
Output will be directory with name 'test' and three files with the same content in it.
$ ginit -d ../other/template.hs test A B C
Output will be directory with name 'test' and three files (A.hs, B.hs, C.hs) in it. If you want custom ext use -e
flag:
$ ginit -d ../some/template.c -e cpp test A B C