-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support storing variable via yaml file #366
Comments
I am not sure I am following. If so, what is wrong with having this setup: # src/initialize.sh
load_vars
# src/lib/load_vars.sh
load_vars() {
git_version=1.2.3
docker_version=4.5.6
} Isn't this clean enough? |
BTW - since you mentioned internal components, I am not sure if you are familiar with the Extensible Scripts feature in bashly, which lets you develop standalone scripts that work together (like developing a separate script for "docker pull" and "docker build"). Just wanted to mention it in case it is relevant. |
@marcinkuzminski do you still need help with this / wish to discuss this further? |
I am closing this. If there is any interest in continuing the discussion, we can reopen. |
Description
Here's our use case, we keep certain versions inside the source code of bashly generated script. This is mostly used when we do a self-update call that does downloads new script, and does comparison on internal changes and components our script is installing.
Similar how version works and it's available globally in the script.
Our workaround is to keep thi in the initialize.sh, but it would be nicer if we bump version and all internal versions of components from yaml file.
my idea was a new section called
variables
that would keep them in it's own namespace so it doesn't get mixed with any other script defined vars.What do you think about such feature ?
The text was updated successfully, but these errors were encountered: