{{ $showLanguage := .Get "showLanguage" | default true }} {{ $showClassification := .Get "showClassification" | default true }} {{ $language := .Get "language" | default "All" }} {{ $moduleType := .Get "moduleType" | default "All" }} {{ $bicepResFile := readFile "/static/module-indexes/BicepResourceModules.csv" }} {{ $bicepResRows := $bicepResFile | transform.Unmarshal (dict "delimiter" ",") }} {{ $bicepPtnFile := readFile "/static/module-indexes/BicepPatternModules.csv" }} {{ $bicepPtnRows := $bicepPtnFile | transform.Unmarshal (dict "delimiter" ",") }} {{ $bicepUtlFile := readFile "/static/module-indexes/BicepUtilityModules.csv" }} {{ $bicepUtlRows := $bicepUtlFile | transform.Unmarshal (dict "delimiter" ",") }} {{ $tfResFile := readFile "/static/module-indexes/TerraformResourceModules.csv" }} {{ $tfResRows := $tfResFile | transform.Unmarshal (dict "delimiter" ",") }} {{ $tfPtnFile := readFile "/static/module-indexes/TerraformPatternModules.csv" }} {{ $tfPtnRows := $tfPtnFile | transform.Unmarshal (dict "delimiter" ",") }} {{ $tfUtlFile := readFile "/static/module-indexes/TerraformUtilityModules.csv" }} {{ $tfUtlRows := $tfUtlFile | transform.Unmarshal (dict "delimiter" ",") }} {{ if $showLanguage }}{{ end }} {{ if $showClassification }}{{ end }} {{ if in (slice "Bicep" "All") $language }} {{ if in (slice "Resource" "All") $moduleType }} {{ if $showLanguage }}{{ end }} {{ if $showClassification }}{{ end }} {{ end }} {{ if in (slice "Pattern" "All") $moduleType }} {{ if and (eq $moduleType "Pattern") $showLanguage }}{{ end }} {{ if $showClassification }}{{ end }} {{ end }} {{ if in (slice "Utility" "All") $moduleType }} {{ if and (eq $moduleType "Utility") $showLanguage }}{{ end }} {{ if $showClassification }}{{ end }} {{ end }} {{ end }} {{ if in (slice "Terraform" "All") $language }} {{ if in (slice "Resource" "All") $moduleType }} {{ if $showLanguage }}{{ end }} {{ if $showClassification }}{{ end }} {{ end }} {{ if in (slice "Pattern" "All") $moduleType }} {{ if and (eq $moduleType "Pattern") $showLanguage }}{{ end }} {{ if $showClassification }}{{ end }} {{ end }} {{ if in (slice "Utility" "All") $moduleType }} {{ if and (eq $moduleType "Utility") $showLanguage }}{{ end }} {{ if $showClassification }}{{ end }} {{ end }} {{ end }}
LanguageClassification{{ emojify ("Published :green_circle: & :yellow_circle:") }} {{ emojify ("Proposed :white_circle:") }} SUM
BicepResource{{ add (partial "countModules" (dict "rows" $bicepResRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepResRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) }} {{ partial "countModules" (dict "rows" $bicepResRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly") }} {{ add (partial "countModules" (dict "rows" $bicepResRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepResRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepResRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly")) }}
BicepPattern{{ add (partial "countModules" (dict "rows" $bicepPtnRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepPtnRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) }} {{ partial "countModules" (dict "rows" $bicepPtnRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly") }} {{ add (partial "countModules" (dict "rows" $bicepPtnRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepPtnRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepPtnRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly")) }}
BicepUtility{{ add (partial "countModules" (dict "rows" $bicepUtlRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepUtlRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) }} {{ partial "countModules" (dict "rows" $bicepUtlRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly") }} {{ add (partial "countModules" (dict "rows" $bicepUtlRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepUtlRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $bicepUtlRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly")) }}
TerraformResource{{ add (partial "countModules" (dict "rows" $tfResRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfResRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) }} {{ partial "countModules" (dict "rows" $tfResRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly") }} {{ add (partial "countModules" (dict "rows" $tfResRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfResRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfResRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly")) }}
TerraformPattern{{ add (partial "countModules" (dict "rows" $tfPtnRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfPtnRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) }} {{ partial "countModules" (dict "rows" $tfPtnRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly") }} {{ add (partial "countModules" (dict "rows" $tfPtnRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfPtnRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfPtnRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly")) }}
TerraformUtility{{ add (partial "countModules" (dict "rows" $tfUtlRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfUtlRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) }} {{ partial "countModules" (dict "rows" $tfUtlRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly") }} {{ add (partial "countModules" (dict "rows" $tfUtlRows "moduleStatusToCount" "Available" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfUtlRows "moduleStatusToCount" "Orphaned" "countParentsOrChildren" "ParentsOnly")) (partial "countModules" (dict "rows" $tfUtlRows "moduleStatusToCount" "Proposed" "countParentsOrChildren" "ParentsOnly")) }}