1 package devstate 2 3 import ( 4 "errors" 5 6 "github.com/feloy/devfile-lifecycle/pkg/graph" 7 ) 8 9 func (o *DevfileState) GetFlowChart() (string, error) { 10 g, err := graph.Build(o.Devfile.Data) 11 if err != nil { 12 return "", errors.New("error building graph") 13 } 14 return g.ToFlowchart(), nil 15 } 16