feat(shell): add hb-roots function to list hawkBit rootfs ids
This commit is contained in:
parent
e3e1fe4d8d
commit
821a8aee39
1 changed files with 11 additions and 0 deletions
|
@ -132,5 +132,16 @@
|
||||||
--get \
|
--get \
|
||||||
| jq | bat
|
| 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
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue