From 821a8aee399503d2b43205506dc6f6db728a9b8f Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 23 Apr 2025 11:07:48 +0200 Subject: [PATCH] feat(shell): add hb-roots function to list hawkBit rootfs ids --- horsch/zsh.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 + } ''; }