Skip to content

Commit

Permalink
feat: Use make2help
Browse files Browse the repository at this point in the history
  • Loading branch information
locona committed Apr 10, 2020
1 parent bd9042a commit 959ad54
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
.DEFAULT: lint
RELEASE_BRANCH := release/v1.0.x

.DEFAULT_GOAL := help

help:
@make2help $(MAKEFILE_LIST)


## Run golangci-lint
lint:
@golangci-lint run --enable-all --exclude-use-default=false -c=./.golangci.yml .

## Checkout master branch & git log --oneline
master:
@git branch -D master
@git fetch && git checkout -b master origin/master
@git log --oneline

## Checkout new release branch.
release:
@git branch -D ${RELEASE_BRANCH}
@git fetch && git checkout -b ${RELEASE_BRANCH} origin/${RELEASE_BRANCH}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# EnvDef

envdef provides methods of setting environment value with default value
envdef provides methods of setting environment value with default value.

## Installation

Expand All @@ -18,14 +18,14 @@ go get github.com/locona/envdef/cmd/envdef

## Usage

Add your application configuration to your .env file in the root of your project:
Add your application configuration to your `.env` file in the root of your project:

```
S3_BUCKET=YOURS3BUCKET
SECRET_KEY=YOURSECRETKEYGOESHERE
```

and .env.sample file in the root of your project:
and `.env.sample` file in the root of your project:

```
S3_BUCKET=YOURS3BUCKET
Expand All @@ -38,7 +38,7 @@ And then run:
envdef
```

As a result created the .env.new file
As a result created the `.env.new` file

```
REGION=REGION
Expand Down

0 comments on commit 959ad54

Please sign in to comment.