-
Notifications
You must be signed in to change notification settings - Fork 229
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
[feature] Add scripting support #19
Comments
Hi, could you provide a specific example of how you would use this for WireViz? I am not sure I understand what it is you want to turn into a script... if this is a separate add-on and not a feature for WireViz specifically, as you mention in your edit, I would like to close this issue. Thanks! |
This suggestion popped out of this need of mine: https://stackoverflow.com/questions/14184971/more-complex-inheritance-in-yaml The very first usage might be "component based design". Some sort of wires can be connected to some sort of connectors and this preprepared setups can be used in another project; which my suggestion makes it possible. This "feature" can be handed over a pre-process, but this requires WirViz to accept pure JSON files as well as the YAML files. |
Hi,
It always ended up with trying to turn the configurations into a script in my circumstances. I would like to know if you'd like to have scripting support for configuration files.
My proposal is very straightforward: Using LiveScript as a "configuration format" will do everything we need:
Here is an example LiveScript configuration that looks very clean like YAML: https://gist.github.com/ceremcem/4ca8d774e660c579682839620d8c2da8
Edit
It doesn't have to be something you need to add directly to this repository. A LiveScript "configuration" file can be passed by pipes in the command line as if it were a json file, so it's only a "different workflow" that might need to be promoted.
The text was updated successfully, but these errors were encountered: