mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
Update docker.nu
Labels are not their own subtable
This commit is contained in:
parent
9d75551549
commit
c8f46f1882
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue