diff --git a/modules/subsystems/module.go b/modules/subsystems/module.go index b7e4a61..79a03bd 100644 --- a/modules/subsystems/module.go +++ b/modules/subsystems/module.go @@ -101,6 +101,8 @@ func SetDatabaseKeySpace(keySpace string) { } func printGraph() { + fmt.Println("subsystems dependency graph:") + // unmark subsystems module module.Disable() // mark roots @@ -111,6 +113,15 @@ func printGraph() { for _, sub := range subsystems { printModuleGraph("", sub.module, true) } + + fmt.Println("\nsubsystem module groups:") + _ = start() // no errors for what we need here + for _, sub := range subsystems { + fmt.Printf("├── %s\n", sub.Name) + for _, mod := range sub.Modules[1:] { + fmt.Printf("│ ├── %s\n", mod.Name) + } + } } func printModuleGraph(prefix string, module *modules.Module, root bool) {