add comment with list of available fields

This commit is contained in:
Bruno Alexandre Rosa 2026-03-14 20:10:07 -03:00
parent b046661208
commit 220fa03b2e

View File

@ -38,6 +38,7 @@ while [[ $# -gt 0 ]]; do
esac
done
# `gh cache list --json`` fields (see https://cli.github.com/manual/gh_cache_list): createdAt, id, key, lastAccessedAt, ref, sizeInBytes, version
if [[ $# -eq 0 ]]; then
echo "Grouping all caches by prefix..."
json=$(gh cache list --limit "$LIMIT" --json key,sizeInBytes 2>/dev/null) || {