feat(zsh): add hb-configs function

This commit is contained in:
Michael Mandl 2024-10-29 13:52:02 +01:00
parent f6d8dd10aa
commit 06658cf559
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2

View file

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