Created
March 31, 2023 14:54
-
-
Save ab/946c3f3749154585cbff6862220fda6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eo pipefail | |
cd "$(git rev-parse --show-toplevel)" | |
if [ -t 1 ]; then | |
opts=("--ansi") | |
else | |
opts=() | |
fi | |
set -x | |
# Valid package names: https://www.python.org/dev/peps/pep-0508/#names | |
poetry show --outdated "${opts[@]}" | grep --file=<(poetry show --tree | grep -oiE '^[A-Z0-9_.-]+') --color=never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment