geelen / shellac

Coat your shell scripts in something a bit more beautiful
MIT License
156 stars 4 forks source link

env vars in shellac environments? #11

Open wizzard0 opened 3 years ago

wizzard0 commented 3 years ago

Of course it's possible to pass env vars via export etc, but this is prone to shell escaping/whitespace etc etc. Would be awesome to pass a dict of env vars to be mixed into the shellac environment, like the .in() currently does.

geelen commented 3 years ago

Definitely. Pretty easy for me to add stuff like this, but do you wanna give me a fuller example API? .env() maybe? Or something that would live inside the actual shellac block like env ${ ... }?

wizzard0 commented 3 years ago

.env() sounds great