rails-erd
rails-erd copied to clipboard
Allow config file to be specified as a cli option
We have a rather large domain and we'd like to generate multiple (smaller) graphs so they're easier to understand. Today it appears we can only have 1 YML configuration file for our project. We'd really like to create n number of configurations.
If we could specify a YML configuration as a cli option we could conveniently configure each our sub- graphs.
Right now it looks like we can only use cli options to render different graphs. Is that correct?
Thanks for this tool. It looks cool!
That's a really interesting use case! Is it that you have a very large "monolith" app and want to look at the relationships for just a subsection of the app? We do have an open PR #189 that would let you specify a model to begin the walk from, and limit the "depth" (really, the number of edges from the base node) to graph from.
Right now, we don't have the option for specifying a config YML from the command line, only a global (in your current user's $HOME
) or a project local file. I think it would be relatively easy to add a check to see if we've specified a config YML via a CLI option (somewhere around here, if anyone wants to tackle this before I get to it..)
+1 me to.
+1
There is an open PR for this feature here: #275