An open API service indexing awesome lists of open source software.

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

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.