runenv
Version, currently master branch1 version
- master branchlatestNov 13, 2022
github.com/davidkellis/runenv
Run a command in an environment that includes environment variables specified in a file
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
runenv:
github: davidkellis/runenv
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.6.2- License
- MIT
- Author
- David Ellis
- Target
runenvfrom src/runenv.cr
Dependencies
Runtime Dependencies
- poncho*github: icyleaf/poncho, branch: master
README
runenv
This command line tool loads environment variables from a file and then executes the specified command in an environment containing the pre-existing environment variables as well as the environment variables defined within the specified environment file.
Installation
crystal build src/runenv.cr
Usage
$ runenv .env.local foo # load .env.local into environment and then run foo command
$ runenv foo # load .env into environment and then run the foo command
$ runenv foo bar baz # load .env into environment and then run `foo bar baz`
$ runenv .env.dev foo bar baz # load .env.dev into environment and then run `foo bar baz`
Contributors
- David Ellis - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Nov 13, 2022
- Crystal
1.6.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/davidkellis/runenv
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 26, 2026
- Synced
- Sep 26, 2026
- Versions
- 1