-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feedback on API usage? #1
Comments
I like the idea! It's a simple way to integrate it with any project. The For the name, +1 to |
I'm fine with changing the name of the gem to |
@ivantsepp The graph looks nice, by the way 👍 |
👍 for FYI, |
I don't see a reason not to use rake tasks. We could do both rake tasks and a binary! Yea I took a look at how state_machine implements its graphing and it looks pretty straightforward |
Just let me know, when I can rename the repo to |
I put some sample code at https://github.com/ivantsepp/aasm_graph/blob/master/bin/aasm_graph. This is how you would use it (if you clone it down, you should be able to run the following):
It generates this: https://github.com/ivantsepp/aasm_graph/blob/master/job.jpg
This is completely throwaway code! Just a sample implementation. I wanted to get feedback on the command line usage. The
-I
option will add paths to the load path and the-r
option will require the files you want to be loaded. Then the command line takes as arguments the class names you want to generate output for.What do you think about the usage above? Am I missing something? Do we need
-I
or-r
flags? What about the class names as arguments? It would also be good to think about what we should allow to be configurable. I thinkrankdir
should be configurable to be eitherLR
orTB
. What about the label names or font?Should we also name this project to be
aasm-graph
so that our class names will be likeAASM::Graph::CLI
? (I'm going off this naming convention).cc @alto @kitop Your feedback is greatly appreciated!
The text was updated successfully, but these errors were encountered: