Skip to content
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

Open
ceremcem opened this issue Jun 25, 2020 · 3 comments
Open

[feature] Add scripting support #19

ceremcem opened this issue Jun 25, 2020 · 3 comments

Comments

@ceremcem
Copy link

ceremcem commented Jun 25, 2020

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:

  • Reusability
  • Modularity
  • Real inheritance support
  • Scriptability

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.

@formatc1702
Copy link
Collaborator

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!

@formatc1702 formatc1702 changed the title Add scripting support [feature] Add scripting support Jun 28, 2020
@ceremcem
Copy link
Author

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.

@martinrieder
Copy link
Contributor

martinrieder commented Jul 2, 2024

@ceremcem perhaps #382 solves your issue. You are welcome to also join the discussion in #220.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants