Add Docker & Operating System info properties (#42)

This commit is contained in:
Franck Nijhof 2021-01-14 03:12:13 +01:00 committed by GitHub
parent 65e62b1fd5
commit 1662ddf17f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,3 +132,19 @@ function bashio::info.supported() {
bashio::log.trace "${FUNCNAME[0]}" bashio::log.trace "${FUNCNAME[0]}"
bashio::info 'supervisor.info.supported' '.supported' bashio::info 'supervisor.info.supported' '.supported'
} }
# ------------------------------------------------------------------------------
# Returns the Docker version running on the system.
# ------------------------------------------------------------------------------
function bashio::info.docker() {
bashio::log.trace "${FUNCNAME[0]}"
bashio::info 'supervisor.info.docker' '.docker'
}
# ------------------------------------------------------------------------------
# Returns the operating system running on the system.
# ------------------------------------------------------------------------------
function bashio::info.operating_system() {
bashio::log.trace "${FUNCNAME[0]}"
bashio::info 'supervisor.info.operating_system' '.operating_system'
}