https://github.com/bbkane/envelope
Store project environmental files in a central database
https://github.com/bbkane/envelope
go
Last synced: about 1 year ago
JSON representation
Store project environmental files in a central database
- Host: GitHub
- URL: https://github.com/bbkane/envelope
- Owner: bbkane
- License: mit
- Created: 2024-01-06T23:41:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-26T21:43:58.000Z (about 1 year ago)
- Last Synced: 2025-04-28T17:18:04.113Z (about 1 year ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 3.16 MB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# envelope

Store environment variables for projects in a central SQLite database!
- Automatically export/unexport environments when entering/leaving directories
- Need an environment variable in more than one environment? Create a reference to it instead of copying it.
## Project Status
I'm using `envelope` personally, but I can't recommend it for anyone else to use until I have more features and tab completion. The CLI interface is also not stable.
## Install
- [Homebrew](https://brew.sh/): `brew install bbkane/tap/envelope`
- [Scoop](https://scoop.sh/):
```
scoop bucket add bbkane https://github.com/bbkane/scoop-bucket
scoop install bbkane/envelope
```
- Download Mac/Linux/Windows executable: [GitHub releases](https://github.com/bbkane/envelope/releases)
- Go: `go install go.bbkane.com/envelope@latest`
- Build with [goreleaser](https://goreleaser.com/) after cloning: ` goreleaser release --snapshot --clean`
## Initialize in `~/.zshrc`
> Other shells not yet supported
```bash
eval "$(envelope shell zsh init)"
```
## Dev Notes
See [Go Project Notes](https://www.bbkane.com/blog/go-project-notes/) for notes on development tooling and CI/CD setup (including demo gif generation)
### Generate [`./dbdoc`](./dbdoc) with [tbls](https://github.com/k1LoW/tbls)
Install:
```bash
brew install k1LoW/tap/tbls
```
Run:
```bash
# get a fresh db
go run . env list --db-path tmp.db
tbls doc --rm-dist
```
### Generate [./sqlite/sqlite/sqlcgen](./sqlite/sqlite/sqlcgen)
```bash
go generate ./...
```