cmmorrow / build-magic

A general purpose build/install/deploy tool.
MIT License
9 stars 2 forks source link

Add support for environment variables #79

Closed cmmorrow closed 2 years ago

cmmorrow commented 2 years ago

Is your feature request related to a problem? Please describe. When adding support for dotenv files, I noticed adding support for individual environment variables wouldn't be that difficult and could be useful if only one or two are needed, and the user doesn't want to both with making a dotenv file.

Describe the solution you'd like Added a --env option to the CLI and environment variables: property to the config file for adding ad hoc environment variables. Allow for multiple --env options and environment variables: should be a list. Environment variables should tie into the existing code for passing envs but the code for reading and parsing dotenv file might need to be refactored a little to make this easier.