macos - How do I "replay" the "Caveats" section from a homebrew recipe - Stack Overflow

PHOTO EMBED

Wed Feb 03 2021 09:56:26 GMT+0000 (UTC)

Saved by @canering #sh

# For brews
$ brew info --json $(brew list) | jq -r '.[] | select(.caveats != null) | "\n\nName: \(.name)\nCaveats: \(.caveats)"'

# For casks
$ brew cask --json=v1 info $(brew cask list) | jq -r '.[] | select(.caveats != null) | "\n\nName: \(.name)\nCaveats: \(.caveats)"'
content_copyCOPY

https://stackoverflow.com/questions/13333585/how-do-i-replay-the-caveats-section-from-a-homebrew-recipe/13333858