mirror of https://github.com/therootcompany/dotenv
update README, add go-gitver for manual build versions
This commit is contained in:
parent
17c7677e00
commit
d1b4bc1aca
11
README.md
11
README.md
|
@ -25,16 +25,16 @@ curl -A MS https://webinstall.dev/dotenv | powershell
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dotenv v1.0.0 (0000000) 2020-10-20T00:00:00Z
|
dotenv v1.0.0 (17c7677) 2020-10-19T23:43:57Z
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
dotenv [-f .env.alternate] -- <command> [arguments...]"
|
dotenv [-f .env.alternate] -- <command> [arguments...]"
|
||||||
|
|
||||||
-f string
|
-f string
|
||||||
path to .env file (default ".env")
|
path to .env file (default ".env")
|
||||||
-help
|
--help
|
||||||
print usage and exit
|
print usage and exit
|
||||||
-version
|
--version
|
||||||
print version and exit
|
print version and exit
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
@ -58,6 +58,7 @@ curl -sS https://webinstall.dev/golang | bash
|
||||||
```bash
|
```bash
|
||||||
export GOFLAGS="-mod=vendor"
|
export GOFLAGS="-mod=vendor"
|
||||||
go generate -mod=vendor ./...
|
go generate -mod=vendor ./...
|
||||||
|
go run -mod=vendor git.rootprojects.org/root/go-gitver/v2
|
||||||
go build -mod=vendor .
|
go build -mod=vendor .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -77,6 +78,10 @@ curl -sS https://webinstall.dev/goreleaser | bash
|
||||||
goreleaser --snapshot --skip-publish --rm-dist
|
goreleaser --snapshot --skip-publish --rm-dist
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./dist/dotenv_darwin_amd64/dotenv --version
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Copyright 2020 The dotenv Authors.
|
Copyright 2020 The dotenv Authors.
|
||||||
|
|
5
go.mod
5
go.mod
|
@ -2,4 +2,7 @@ module git.rootprojects.org/root/dotenv
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
require github.com/joho/godotenv v1.3.0
|
require (
|
||||||
|
git.rootprojects.org/root/go-gitver/v2 v2.0.2
|
||||||
|
github.com/joho/godotenv v1.3.0
|
||||||
|
)
|
||||||
|
|
2
go.sum
2
go.sum
|
@ -1,2 +1,4 @@
|
||||||
|
git.rootprojects.org/root/go-gitver/v2 v2.0.2 h1:T+Je13wrY1jz4OPJF98HnuCNp6n2Xe2uK6/NNF6a4+0=
|
||||||
|
git.rootprojects.org/root/go-gitver/v2 v2.0.2/go.mod h1:ur82M/jZcvr1WWihyVtNEgDBqIjo22o56wcVHeVJFh8=
|
||||||
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
|
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
|
||||||
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
|
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
// +build tools
|
||||||
|
|
||||||
|
package tools
|
||||||
|
|
||||||
|
import (
|
||||||
|
// for generating GoReleaser-compatible versions locally
|
||||||
|
_ "git.rootprojects.org/root/go-gitver/v2"
|
||||||
|
)
|
|
@ -1,3 +1,7 @@
|
||||||
|
# git.rootprojects.org/root/go-gitver/v2 v2.0.2
|
||||||
|
## explicit
|
||||||
|
git.rootprojects.org/root/go-gitver/v2
|
||||||
|
git.rootprojects.org/root/go-gitver/v2/gitver
|
||||||
# github.com/joho/godotenv v1.3.0
|
# github.com/joho/godotenv v1.3.0
|
||||||
## explicit
|
## explicit
|
||||||
github.com/joho/godotenv
|
github.com/joho/godotenv
|
||||||
|
|
Loading…
Reference in New Issue