mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 12:01:25 +00:00
✨ Adds support for host logs (#26)
This commit is contained in:
parent
e65982ae89
commit
18b880edbc
1 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,14 @@ function bashio::host.reboot() {
|
|||
bashio::api.supervisor POST /host/reboot
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Returns the logs created by the host system.
|
||||
# ------------------------------------------------------------------------------
|
||||
function bashio::host.logs() {
|
||||
bashio::log.trace "${FUNCNAME[0]}"
|
||||
bashio::api.supervisor GET /host/logs true
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Returns a JSON object with generic Host information.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue