ljskljasdklj

This commit is contained in:
2025-05-22 03:28:37 +02:00
parent 0cf497fa86
commit 7c0d0e7495

View File

@@ -88,8 +88,7 @@ __list_packages_attrpath_filtered +attrpaths:
# printf >&1 "'%s'\n" "${attrpaths[@]}"
just list-packages | grep "$(printf "%s\n" "${attrpaths[@]}")"
[no-cd]
@list-maintainer-packages $github_handle: _packages_json
@list-maintainer-packages $github_handle=`just _a_maintainer`: _packages_json
# TODO: maybe add github handles to packages tsv?
[[ -n "$github_handle" ]] || ! echo >&2 "ERROR: No github handle"
jq <packages.json --arg github_handle "$github_handle" 'to_entries[] | select((.value.meta.maintainers // [])[]|select(.github == $github_handle)) | .key' -r \
@@ -1013,8 +1012,23 @@ _some_systems:
'map(. == $system) | index(true) | if . == null then "" else @sh "--bind load:pos(\(. + 1))" end'
)
_a_maintainer:
nix eval --log-format raw --file master/maintainers/maintainer-list.nix \
--apply 'x: builtins.attrValues (builtins.mapAttrs (k: v: v.github or k) x)' --json \
| jq .[] -r \
| fzf --sync --layout=reverse
_some_maintainers:
nix eval --log-format raw --file master/maintainers/maintainer-list.nix \
--apply 'x: builtins.attrValues (builtins.mapAttrs (k: v: v.github or k) x)' --json \
| jq .[] -r \
| fzf --sync --layout=reverse --multi
@_a_pr:
cd master; gh pr list --limit 1000 --json 'number,title' --state open | jq '.[]|"\(.number) - \(.title)"' -r | gum filter --placeholder "Pick PR..." --height 10 | cut -d' ' -f1
cd master; gh pr list --limit 1000 --json 'number,title' --state open | jq '.[]|"\(.number) - \(.title)"' -r | gum filter --placeholder "Pick PR..." --height 15 | cut -d' ' -f1
@_some_prs:
cd master; gh pr list --limit 1000 --json 'number,title' --state open | jq '.[]|"\(.number) - \(.title)"' -r | gum filter --placeholder "Pick PR..." --height 15 --no-limit | cut -d' ' -f1
@_upstream_release_branches $prefix="upstream/" $suffix="":
printf "${prefix//%/%%}%s${suffix//%/%%}\n" \