Skip to content

Commit

Permalink
Updated make lib, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jun 23, 2020
1 parent e004736 commit f0a02b3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .make/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ ifndef GIT_DOMAIN
override GIT_DOMAIN=github.com
endif

## Set if defined (alias variable for ease of use)
ifdef branch
override REPO_BRANCH=$(branch)
export REPO_BRANCH
endif

## Do we have git available?
HAS_GIT := $(shell command -v git 2> /dev/null)

Expand Down
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,28 @@ make help

List of all current commands:
```text
all Runs lint, test-short and vet
bench Run all benchmarks in the Go application
clean Remove previous builds and any test cache data
clean-mods Remove all the Go mod cache
coverage Shows the test coverage
godocs Sync the latest tag with GoDocs
help Show all make commands available
lint Run the Go lint application
release Full production release (creates release in Github)
release-test Full production test release (everything except deploy)
release-snap Test the full release (build binaries)
tag Generate a new tag and push (IE: tag version=0.0.0)
tag-remove Remove a tag if found (IE: tag-remove version=0.0.0)
tag-update Update an existing tag to current commit (IE: tag-update version=0.0.0)
test Runs vet, lint and ALL tests
test-short Runs vet, lint and tests (excludes integration tests)
test-travis Runs tests via Travis (also exports coverage)
update Update all project dependencies
update-releaser Update the goreleaser application
vet Run the Go vet application
clean Remove previous builds and any test cache data
clean-mods Remove all the Go mod cache
coverage Shows the test coverage
godocs Sync the latest tag with GoDocs
help Show this help message
install Install the application
install-go Install the application (Using Native Go)
lint Run the Go lint application
release Full production release (creates release in Github)
release Runs common.release then runs godocs
release-snap Test the full release (build binaries)
release-test Full production test release (everything except deploy)
replace-version Replaces the version in HTML/JS (pre-deploy)
tag Generate a new tag and push (tag version=0.0.0)
tag-remove Remove a tag if found (tag-remove version=0.0.0)
tag-update Update an existing tag to current commit (tag-update version=0.0.0)
test Runs vet, lint and ALL tests
test-short Runs vet, lint and tests (excludes integration tests)
test-travis Runs all tests via Travis (also exports coverage)
test-travis-short Runs unit tests via Travis (also exports coverage)
uninstall Uninstall the application (and remove files)
vet Run the Go vet application
```
</details>

Expand Down Expand Up @@ -176,7 +178,7 @@ import (
func main() {

// Create a client
client, _ := whatsonchain.NewClient(whatsonchain.NetworkMain, nil)
client := whatsonchain.NewClient(whatsonchain.NetworkMain, nil)

// Get a balance for an address
balance, _ := client.AddressBalance("16ZqP5Tb22KJuvSAbjNkoiZs13mmRmexZA")
Expand Down

0 comments on commit f0a02b3

Please sign in to comment.