/gokeleton

Copy and replace keywords to generate skeleton files from local or github repository written by Go

Primary LanguageGoApache License 2.0Apache-2.0

gokeleton

Skeleton Generator

Description

Copy and replace keywords to generate skeleton files from local or github repository written by Go

Usage

gokeleton -p "key1=value1,key2=value2" <src-path> <dest-path>

For example, copy from github repository

gokeleton -p "key=value" https://github.com/hata/gokeleton /tmp/test

Copy from a local directory

gokeleton -p "key=value" /local/template/path /tmp/test

Replace 'key' with 'value' if these keys are found in files.

Install

To install, use go get:

$ go get -d github.com/hata/gokeleton

Contribution

  1. Fork (https://github.com/hata/gokeleton/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

hata