()
| 26 | } |
| 27 | |
| 28 | func NewTaskfileGraph() *TaskfileGraph { |
| 29 | return &TaskfileGraph{ |
| 30 | sync.Mutex{}, |
| 31 | graph.New(taskfileHash, |
| 32 | graph.Directed(), |
| 33 | graph.PreventCycles(), |
| 34 | graph.Rooted(), |
| 35 | ), |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (tfg *TaskfileGraph) Visualize(filename string) error { |
| 40 | f, err := os.Create(filename) |
no outgoing calls
no test coverage detected
searching dependent graphs…