https://github.com/seletskiy/docopt-ver
docopt version setter for golang programs and git hook
https://github.com/seletskiy/docopt-ver
Last synced: about 2 months ago
JSON representation
docopt version setter for golang programs and git hook
- Host: GitHub
- URL: https://github.com/seletskiy/docopt-ver
- Owner: seletskiy
- Created: 2015-09-16T09:38:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-16T10:11:15.000Z (almost 11 years ago)
- Last Synced: 2023-03-12T08:57:13.699Z (over 3 years ago)
- Language: Go
- Size: 121 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
docopt-ver is small tool, which will parse specified Go-file and replace
hardcoded version string with specified string.
Most usable as pre-commit hook.
# Installation
## For new git-repos
```bash
go get github.com/seletskiy/docopt-ver
mkdir -p ~/.git/templates/hooks
git config --global init.templatedir ~/.git/templates/
cp $GOPATH/src/github.com/seletskiy/docopt-ver/pre-commit ~/.git/templates/hooks
```
## For existing git-repos
Just copy `pre-commit` file to the `.git/hooks` directory.