Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Using Erd as a library #10
Oh! Yay. Didn't even notice. :-)
I haven't really thought of making this available as a library. I probably won't spend the time to do it myself, but I'd be OK with a PR that I'd be willing to maintain unless as it stays simple.
An alternative is to shell out to the
Ok, I will look into preparing that PR. I would basically just move everything but the main function to a library project named erd-lib, leaving in erd just the main and adding a dependency on erd-lib.
In my proof of concept I had just to change a method to get my desired behavior: I made loadER accept a Text instance of a file handle, to make it possible to parse code in memory.