1
0
mirror of https://github.com/agarrharr/awesome-cli-apps synced 2024-12-22 04:40:23 +01:00

Remove or update deprecated app links

This commit is contained in:
Jonathan Neidel 2022-03-20 12:31:21 +01:00
parent 1b64c1dec4
commit d552cbcd0a
2 changed files with 17 additions and 10 deletions

View File

@ -1,21 +1,32 @@
#! /bin/sh
#! /bin/bash
J=4
OUT_FILE=deprecated.txt
if [ "$1" = "--help" ] || [ "$1" = "-h" ] || [ "$1" = "help" ]; then
cat <<EOF
$ check-for-deprecation.sh
Check all github apps in the readme for deprecation.
Running $J processes in parallel.
Found deprecated repos are written to: $OUT_FILE
Parallel execution (100% cpu).
EOF
exit
fi
APPS=$(cat readme.md | grep -e "- \[.\+\]\(.\+\)\s" | grep 'github.com' | awk -F "(" '{ print $2 }' | cut -d ")" -f1)
for i in $(echo $APPS); do
echo $(if [[ -n $(curl -SsL "$i" | grep "This repository has been archived by the owner. It is now read-only.") ]]; then echo DEPRECATED $i | tee >>deprecated.txt >(cat /dev/stdin); else echo CHECKED $i | cat /dev/stdin; fi) &
check_deprecation() {
REPO="$1"
if nice curl -SsL "$REPO" | grep "This repository has been archived by the owner. It is now read-only." >/dev/null; then
echo "DEPRECATED $REPO" | tee -a $OUT_FILE
else
echo "CHECKED $REPO"
fi
}
# parallel exec: https://unix.stackexchange.com/a/216475
for app in $(echo $APPS); do
((i=i%J)); ((i++==0)) && wait
check_deprecation "$app" &
done

View File

@ -255,7 +255,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
- [g3l](https://github.com/svtek/g3l) - Easiest git cli in the w0rld!
- [uber-cli](https://github.com/jaebradley/uber-cli) - Uber client.
- [Buku](https://github.com/jarun/Buku) - Browser-independent bookmark manager.
- [googler](https://github.com/jarun/googler) - Google from the terminal.
- [papis](https://github.com/papis/papis) - Extensible document and bibliography manager.
- [pubs](https://github.com/pubs/pubs) - Scientific bibliography manager.
@ -330,7 +329,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
- [osx-wifi-cli](https://github.com/danyshaanan/osx-wifi-cli) - Manage wifi connections.
- [active-win-cli](https://github.com/sindresorhus/active-win-cli) - Get the title/id/etc of the active window.
- [stronghold](https://github.com/alichtman/stronghold) - Configure security settings from the terminal.
- [website-popup-cli](https://github.com/sindresorhus/website-popup-cli) - Open a website in a popup.
- [dark-mode](https://github.com/sindresorhus/dark-mode) - Toggle dark mode.
### Terminal Sharing Utilities
@ -471,7 +469,7 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
### Files
- [chokidar-cli](https://github.com/kimmobrunfeldt/chokidar-cli) - CLI to watch file system changes.
- [chokidar-cli](https://github.com/open-cli-tools/chokidar-cli) - CLI to watch file system changes.
- [file-type-cli](https://github.com/sindresorhus/file-type-cli) - Detect the file type of a file or stdin.
- [bat](https://github.com/sharkdp/bat) - A cat clone with syntax highlighting.
- [NCDu](https://dev.yorhel.nl/ncdu) - A disk usage analyzer with an ncurses interface.
@ -623,8 +621,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
## Other Awesome Lists
- [awesome-command-line-apps](https://github.com/herrbischoff/awesome-command-line-apps#readme) An alternative awesome list of cli apps.
- [awesome-macos-command-line](https://github.com/herrbischoff/awesome-macos-command-line#readme) - Shell commands and tools specific to macOS.
- [awesome-git-addons](https://github.com/stevemao/awesome-git-addons#readme) - Addons that extend git cli.
- [awesome-shell](https://github.com/alebcay/awesome-shell#readme) Command-line utilities and frameworks.
- [terminals-are-sexy](https://github.com/k4m4/terminals-are-sexy#readme) Terminal frameworks, plugins & resources.