jq
cliSupported platforms: darwin, linux.
Install
skt install jq@<version> --jsonSource
- Type
- cli
- Checksum style
- combined
- Download URL
- https://github.com/jqlang/jq/releases/download/jq-{version}/{download_file}
- Checksum URL
- https://github.com/jqlang/jq/releases/download/jq-{version}/{checksum_file}
Recipe TOML
name = "jq"
type = "cli"
# Assets are bare binaries (no archive); macOS uses "macos", not "darwin".
# Tags are "jq-{version}" (no leading v), unlike most other recipes.
[platform.linux]
download-file = "jq-linux-{arch}"
checksum-file = "sha256sum.txt"
exe-path = "jq-linux-{arch}"
[platform.darwin]
download-file = "jq-macos-{arch}"
checksum-file = "sha256sum.txt"
exe-path = "jq-macos-{arch}"
[install]
download-url = "https://github.com/jqlang/jq/releases/download/jq-{version}/{download_file}"
checksum-url = "https://github.com/jqlang/jq/releases/download/jq-{version}/{checksum_file}"
checksum-style = "combined"
[resolve]
git-url = "https://github.com/jqlang/jq"
version-pattern = "^jq-((?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+))$"