Skip to content

Commit

Permalink
feat: update readme with no-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hguerra committed Jan 5, 2022
1 parent adf65d6 commit 16b1810
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
`envsubst` is a Go package for expanding variables in a string using `${var}` syntax.
Includes support for bash string replacement functions. **This fork allows you to search Google Secret Manager variables**.

## Documentation

[Documentation can be found on GoDoc][doc].


```
envsubst < input.tmpl > output.txt
envsubst -no-empty < input.tmpl > output.txt
```

**Example with Google Secret Manager**
Expand All @@ -15,14 +20,13 @@ Hello ${USER}
My secret from Google: ${gcp:secretmanager:projects/xxx/secrets/mykey/versions/1}
```

command:
```
envsubst < input.tmpl > output.txt
```
#### Imposing restrictions

## Documentation
The flags and their restrictions are:

[Documentation can be found on GoDoc][doc].
|__Option__ | __Meaning__ | __Type__ | __Default__ |
| ------------| -------------- | ------------ | ------------ |
|`-no-empty` | fail if a variable is set but empty | `flag` | `false`

## Supported Functions

Expand Down

0 comments on commit 16b1810

Please sign in to comment.