mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 01:42:55 +00:00
handle repos with commas in descriptions
This commit is contained in:
parent
dd07f97122
commit
beeebb178e
@ -13,7 +13,7 @@ selected=$(gh repo list "$organization" \
|
|||||||
--limit 50 \
|
--limit 50 \
|
||||||
--no-archived \
|
--no-archived \
|
||||||
--json=name,description,isPrivate,updatedAt,primaryLanguage \
|
--json=name,description,isPrivate,updatedAt,primaryLanguage \
|
||||||
| jq -r '.[] | .name + "," + if .description == "" then "-" else .description end + "," + .updatedAt + "," + .primaryLanguage.name' \
|
| jq -r '.[] | .name + "," + if .description == "" then "-" else .description |= gsub(","; " ") | .description end + "," + .updatedAt + "," + .primaryLanguage.name' \
|
||||||
| (echo "REPO,DESCRIPTION,UPDATED,LANGUAGE"; cat -) \
|
| (echo "REPO,DESCRIPTION,UPDATED,LANGUAGE"; cat -) \
|
||||||
| column -s , -t \
|
| column -s , -t \
|
||||||
| fzf \
|
| fzf \
|
||||||
|
Loading…
Reference in New Issue
Block a user