Files
omarchy/plugins/omaplug/marketplace-catalog.sh
T

34 lines
869 B
Bash
Raw Normal View History

2026-09-23 15:19:12 +07:00
#!/bin/bash
set -euo pipefail
CATALOG_URL=${1:-https://plugins.omarchy.org/catalog.json}
curl -fsSL --max-time 30 --max-filesize 16777216 "$CATALOG_URL" |
jq -ce '
if (.plugins | type) != "array" then
error("catalog.plugins is not an array")
else
{
plugins: [
.plugins[]
| select((.id | type) == "string" and (.id | length) > 0)
| {
id,
verificationStatus,
verificationCommit,
verificationSnapshotStatus,
verificationCoverage,
upstreamObservedCommit,
repositoryRelease: (
if (.repositoryRelease | type) == "object" then
{url: .repositoryRelease.url}
else
null
end
)
}
]
}
end
'