diff --git a/justfile b/justfile index b4e4048..75dab7d 100644 --- a/justfile +++ b/justfile @@ -1096,6 +1096,25 @@ _mk_clean_list: # === get/is/test === +# just get-maintainers-for-packages-report $(cat) +# just get-maintainers-for-packages-report $(xclip -o -sel clip) +get-maintainers-for-packages-report +attrpaths: _packages_json + #!/usr/bin/env -S bash -euo pipefail + # TODO: deduplicate the python3XXPackage attributes + declare -a attrpaths=() + for attrpath in "$@"; do + # filter "(attrname)" aliases from nixpkgs-review report + if [[ "$attrpath" =~ "("*")" ]]; then + echo >&2 "Skipping $attrpath" + continue + fi + attrpaths+=("$attrpath") + done + attrpath_json=$(printf "%s\n" "${attrpaths[@]}" | jq -sR 'split("\n")|map(select(.==""|not))' -c) + $JQ_GOJQ