...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-impl/devstate/chart.go

Documentation: github.com/redhat-developer/odo/pkg/apiserver-impl/devstate

     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  

View as plain text