rails-erd icon indicating copy to clipboard operation
rails-erd copied to clipboard

Allow config file to be specified as a cli option

Open thedeeno opened this issue 8 years ago • 4 comments

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!

thedeeno avatar May 09 '16 13:05 thedeeno

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..)

kerrizor avatar May 09 '16 16:05 kerrizor

+1 me to.

MadBomber avatar Mar 20 '17 04:03 MadBomber

+1

kuba108 avatar Jan 05 '18 11:01 kuba108

There is an open PR for this feature here: #275

kerrizor avatar Jan 12 '18 10:01 kerrizor