Description
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):
./bin/aasm_graph -Iexample -rjob Job
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 think rankdir
should be configurable to be either LR
or TB
. What about the label names or font?
Should we also name this project to be aasm-graph
so that our class names will be like AASM::Graph::CLI
? (I'm going off this naming convention).