• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# CMD: Prints the module named $arg in a slightly more concise way
2
3include "library";
4
5def printModule($mod):
6  .[] | select(.Name == $mod) |
7  transformModuleReferences(emptyIfNull | removeLinkVariation | removeEmptyVariations) |
8  depDelta(.Variations) | depDelta(.DependencyVariations) |
9  transformModule(flattenVariations) |
10  deleteDependencyVariations |
11  .Deps |= map(deleteDependencyVariations) |
12  .Deps |= groupDeps
13;
14
15printModule($arg)