Skip to content

Commit 06ac5b9

Browse files
committed
Make limactl ls --format yaml use the same schema as the json output
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
1 parent b9b9aa6 commit 06ac5b9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pkg/store/instance.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,12 @@ func ReadPIDFile(path string) (int, error) {
225225
}
226226

227227
type FormatData struct {
228-
limatype.Instance
229-
HostOS string
230-
HostArch string
231-
LimaHome string
232-
IdentityFile string
228+
limatype.Instance `yaml:",inline"`
229+
230+
HostOS string `json:"HostOS" yaml:"HostOS"`
231+
HostArch string `json:"HostArch" yaml:"HostArch"`
232+
LimaHome string `json:"LimaHome" yaml:"LimaHome"`
233+
IdentityFile string `json:"IdentityFile" yaml:"IdentityFile"`
233234
}
234235

235236
var FormatHelp = "\n" +

0 commit comments

Comments
 (0)