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: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.6.2
License
MIT
Author
David Ellis
Target
  • runenv from 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