diff --git a/horsch/zsh.nix b/horsch/zsh.nix index 407e92b..6ad47d6 100644 --- a/horsch/zsh.nix +++ b/horsch/zsh.nix @@ -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 + } ''; }