1include "library"; 2 3def printModule($mod): 4 .[] | select(.Name == $mod) | 5 transformModuleReferences(emptyIfNull | removeLinkVariation | removeEmptyVariations) | 6 depDelta(.Variations) | depDelta(.DependencyVariations) | 7 transformModule(flattenVariations) | 8 deleteDependencyVariations | 9 .Deps |= map(deleteDependencyVariations) | 10 .Deps |= groupDeps 11; 12 13printModule($arg)