Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
goloop committed Dec 14, 2020
1 parent 1d236f4 commit d3160bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .module
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REPOSITORY_NAME=github.com/goloop
MODULE_NAME=opt
VERSION=0.0.1
VERSION=0.1.3
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Commands:

Requires `godocdown`, install as:
go get github.com/robertkrimen/godocdown/godocdown
git.commit
Update readme, create commit and update tag from the .module file.

Usage as: make git.commit am="Commit message"
endef

# Constants.
Expand Down Expand Up @@ -73,3 +77,12 @@ ifeq (, $(shell which godocdown))
endif
@godocdown -plain=true -template=.godocdown.md ./ | \
sed -e 's/\.VERSION/${VERSION}/g' > README.md
git.commit: readme
ifeq ($(am),)
@echo "You must provide a message to commit as: make commit am='Commit message'"
else
@git add . && git commit -am "${am}" && \
git tag v${VERSION} && \
git push -u origin --all && \
git push -u origin --tag
endif
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/goloop/opt)](https://goreportcard.com/report/github.com/goloop/opt) [![License](https://img.shields.io/badge/license-BSD-blue)](https://github.com/goloop/opt/blob/master/LICENSE) [![License](https://img.shields.io/badge/godoc-YES-green)](https://godoc.org/github.com/goloop/opt)


*Version: 0.0.1*
*Version: 0.1.3*

# opt

Expand Down

0 comments on commit d3160bc

Please sign in to comment.