Skip to content

Feedback on API usage? #1

Open
Open
@ivantsepp

Description

@ivantsepp

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

cc @alto @kitop Your feedback is greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions