13 lines
381 B
Text
13 lines
381 B
Text
#!/usr/bin/env nu
|
|
# Derived variables for mariadb bundle rendering.
|
|
|
|
def main [component_json: string]: nothing -> nothing {
|
|
let db = ($component_json | from json)
|
|
let databases = ($db | get -o databases | default [])
|
|
{
|
|
databases_space: ($databases | str join " "),
|
|
databases_json: ($databases | to json --raw),
|
|
}
|
|
| to json --raw
|
|
| print
|
|
}
|