feat(zsh): add hb-configs function
This commit is contained in:
parent
f6d8dd10aa
commit
06658cf559
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue