motionstudio / enrolzsh

We've got a workflow problem. And we're fixing it - here’s Enrol (step 1).
2 stars 1 forks source link

Autoloading variables #10

Open marcwieland95 opened 7 years ago

marcwieland95 commented 7 years ago

A variable can only be used once in a global context across multiple projects, this is because of the autoloading functionality build into enrol. This behaviour could be very dangerous when using variables inside a deploy.zsh file to simplify the script, because it's possible that the script is reading a variable from a complete different project.

Variables need to be encapsulated or prefixed. Best solution would be a automatic one inside the autoload feature itself.

marcwieland95 commented 7 years ago

For now I leave a note inside readme file and provide accurate examples inside the boilerplate. Doing it automatically isn't a easy task.