1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 15:17:47 +00:00

Update docker.nu

Labels are not their own subtable
This commit is contained in:
Yethal 2021-12-13 11:22:59 +01:00 committed by GitHub
parent 9d75551549
commit c8f46f1882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,5 +7,11 @@ def docker [
each { each {
$it| $it|
from json from json
}|
update Labels {
get Labels|
split row ','|
where ($it|str starts-with ' ') == $false|
split column '=' name value
} }
} }