feat(zsh): add hb-configs function

main
mandlm 2024-10-29 13:52:02 +01:00
parent f6d8dd10aa
commit 06658cf559
Signed by: mandlm
GPG Key ID: 088ED38F036C7AF2
1 changed files with 11 additions and 0 deletions

View File

@ -97,5 +97,16 @@
echo "done." 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
}
''; '';
} }