Skip to content

Instantly share code, notes, and snippets.

@ab
Created March 31, 2023 14:54
Show Gist options
  • Save ab/946c3f3749154585cbff6862220fda6f to your computer and use it in GitHub Desktop.
Save ab/946c3f3749154585cbff6862220fda6f to your computer and use it in GitHub Desktop.
#!/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