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:
parent
1b64c1dec4
commit
d552cbcd0a
@ -1,21 +1,32 @@
|
|||||||
#! /bin/sh
|
#! /bin/bash
|
||||||
|
|
||||||
|
J=4
|
||||||
OUT_FILE=deprecated.txt
|
OUT_FILE=deprecated.txt
|
||||||
|
|
||||||
if [ "$1" = "--help" ] || [ "$1" = "-h" ] || [ "$1" = "help" ]; then
|
if [ "$1" = "--help" ] || [ "$1" = "-h" ] || [ "$1" = "help" ]; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
$ check-for-deprecation.sh
|
$ check-for-deprecation.sh
|
||||||
Check all github apps in the readme for deprecation.
|
Check all github apps in the readme for deprecation.
|
||||||
|
Running $J processes in parallel.
|
||||||
|
|
||||||
Found deprecated repos are written to: $OUT_FILE
|
Found deprecated repos are written to: $OUT_FILE
|
||||||
|
|
||||||
Parallel execution (100% cpu).
|
|
||||||
EOF
|
EOF
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
APPS=$(cat readme.md | grep -e "- \[.\+\]\(.\+\)\s" | grep 'github.com' | awk -F "(" '{ print $2 }' | cut -d ")" -f1)
|
APPS=$(cat readme.md | grep -e "- \[.\+\]\(.\+\)\s" | grep 'github.com' | awk -F "(" '{ print $2 }' | cut -d ")" -f1)
|
||||||
|
|
||||||
for i in $(echo $APPS); do
|
check_deprecation() {
|
||||||
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) &
|
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
|
done
|
||||||
|
@ -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!
|
- [g3l](https://github.com/svtek/g3l) - Easiest git cli in the w0rld!
|
||||||
- [uber-cli](https://github.com/jaebradley/uber-cli) - Uber client.
|
- [uber-cli](https://github.com/jaebradley/uber-cli) - Uber client.
|
||||||
- [Buku](https://github.com/jarun/Buku) - Browser-independent bookmark manager.
|
- [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.
|
- [papis](https://github.com/papis/papis) - Extensible document and bibliography manager.
|
||||||
- [pubs](https://github.com/pubs/pubs) - Scientific 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.
|
- [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.
|
- [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.
|
- [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.
|
- [dark-mode](https://github.com/sindresorhus/dark-mode) - Toggle dark mode.
|
||||||
|
|
||||||
### Terminal Sharing Utilities
|
### Terminal Sharing Utilities
|
||||||
@ -471,7 +469,7 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
|
|||||||
|
|
||||||
### Files
|
### 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.
|
- [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.
|
- [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.
|
- [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
|
## 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-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.
|
- [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.
|
- [terminals-are-sexy](https://github.com/k4m4/terminals-are-sexy#readme) – Terminal frameworks, plugins & resources.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user