Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thalesfsp/configurer
Get config from anywhere, and export to environment
https://github.com/thalesfsp/configurer
configuration environment-variables golang loader subprocess wrapper
Last synced: 8 days ago
JSON representation
Get config from anywhere, and export to environment
- Host: GitHub
- URL: https://github.com/thalesfsp/configurer
- Owner: thalesfsp
- License: mit
- Created: 2022-09-27T18:26:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T01:59:14.000Z (7 months ago)
- Last Synced: 2024-06-20T15:41:35.327Z (5 months ago)
- Topics: configuration, environment-variables, golang, loader, subprocess, wrapper
- Language: Go
- Homepage:
- Size: 8.94 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# configurer
`configurer` loads secret into env vars from different providers. Run `configurer l -h` to see the list of available providers.
## Install
### CLI
Setting target destination:
`curl -s https://raw.githubusercontent.com/thalesfsp/configurer/main/resources/install.sh | BIN_DIR=ABSOLUTE_DIR_PATH sh`
Setting version:
`curl -s https://raw.githubusercontent.com/thalesfsp/configurer/main/resources/install.sh | VERSION=v{M.M.P} sh`
Example:
`curl -s https://raw.githubusercontent.com/thalesfsp/configurer/main/resources/install.sh | BIN_DIR=/usr/local/bin VERSION=v1.3.17 sh`
### Programmatically
Install dependency:
`go get -u github.com/thalesfsp/configurer`
## Usage
### CLI
See the `example` section by running `configurer l v --help`
### Programmatically
See [`dotenv/example_test.go`](dotenv/example_test.go)
### Documentation
Run `$ make doc` or check out [online](https://pkg.go.dev/github.com/thalesfsp/configurer).
## Development
Check out [CONTRIBUTION](CONTRIBUTION.md).
### Release
1. Update [CHANGELOG](CHANGELOG.md) accordingly.
2. Once changes from MR are merged.
3. Tag. Don't need to create a release, it's automatically created by CI.## Roadmap
Check out [CHANGELOG](CHANGELOG.md).