feat(zsh): add hb-configs function
This commit is contained in:
parent
f6d8dd10aa
commit
06658cf559
@ -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
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user