mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 11:44:35 +08:00
`limactl network list --json` displayed the Network value struct only.
The name is the map key and was dropped...
Wrap each row in an anonymous struct embedding networks.Network plus a Name field.
Rename the local `networks` slice to `networkNames` (it shadowed the imported networks package).
Fix the not-found log to report name instead of the zero-value nw.
Signed-off-by: coulof <florian.coulombel@suse.com>
(cherry picked from commit cdae63ce38)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>