pulumi/cmd
joeduffy 79f8b1bef7 Implement a DOT graph converter
This change adds a --dot option to the eval command, which will simply
output the MuGL graph using the DOT language.  This allows you to use
tools like Graphviz to inspect the resulting graph, including using the
`dot` command to generate images (like PNGs and whatnot).

For example, the simple MuGL program:

    class C extends mu.Resource {...}
    class B extends mu.Resource {...}
    class A extends mu.Resource {
        private b: B;
        private c: C;
        constructor() {
            this.b = new B();
            this.c = new C();
        }
    }
    let a = new A();

Results in the following DOT file, from `mu eval --dot`:

    strict digraph {
        Resource0 [label="A"];
        Resource0 -> {Resource1 Resource2}
        Resource1 [label="B"];
        Resource2 [label="C"];
    }

Eventually the auto-generated ResourceN identifiers will go away in
favor of using true object monikers (marapongo/mu#76).
2017-02-09 15:56:15 -08:00
..
apply.go Add scaffolding for mu apply, compile, and plan 2017-01-17 14:40:55 -08:00
describe.go Print the export token during describe 2017-02-02 15:03:51 -08:00
eval.go Implement a DOT graph converter 2017-02-09 15:56:15 -08:00
get.go Begin merging MuPackage/MuIL into the compiler 2017-01-17 17:04:15 -08:00
mu.go Add a mu verify command 2017-02-03 19:27:37 -08:00
plan.go Add scaffolding for mu apply, compile, and plan 2017-01-17 14:40:55 -08:00
verify.go Add a mu verify command 2017-02-03 19:27:37 -08:00
version.go Annotate a bunch of TODOs with work item numbers 2016-11-23 12:30:02 -08:00