feat(shell): add hb-roots function to list hawkBit rootfs ids

This commit is contained in:
Michael Mandl 2025-04-23 11:07:48 +02:00
parent e3e1fe4d8d
commit 821a8aee39
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2

View file

@ -132,5 +132,16 @@
--get \
| jq | bat
}
function hb-roots {
curl --silent \
--location "https://hawkbit-smartcan.horsch.com/rest/v1/softwaremodules" \
--header "Content-Type: application/json" \
--header "Authorization: Basic ''$hawkbitToken" \
--data "q=type==rootfs-smartcan" \
--data "sort=id:DESC" \
--get \
| jq | bat
}
'';
}