Semvercmp is a composable cli utility for comparing and filtering semantic version strings featuring:
- filtering versions that are
lt,lte,gt, orgtea given value - taking the
maxorminof a list of versions
WIP
curl -s https://raw.githubusercontent.com/zairadotsh/semvercmp/refs/heads/main/testdata/raw.txt | semvercmp max 3
curl -s https://raw.githubusercontent.com/zairadotsh/semvercmp/refs/heads/main/testdata/raw.txt | semvercmp min 0.1.1
curl -s https://raw.githubusercontent.com/zairadotsh/semvercmp/refs/heads/main/testdata/raw.txt | semvercmp lte 1.0 0.1.1
0.2.1
v1
curl -s https://raw.githubusercontent.com/zairadotsh/semvercmp/refs/heads/main/testdata/raw.txt | semvercmp gte 1.1 | semvercmp lt 1.2 | semvercmp max 1.1.2