File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
7
7
"github.com/lima-vm/lima/pkg/limayaml"
8
+ "github.com/lima-vm/lima/pkg/store/dirnames"
8
9
"github.com/lima-vm/lima/pkg/version"
9
10
"github.com/spf13/cobra"
10
11
)
@@ -22,6 +23,7 @@ func newInfoCommand() *cobra.Command {
22
23
type Info struct {
23
24
Version string `json:"version"`
24
25
DefaultTemplate * limayaml.LimaYAML `json:"defaultTemplate"`
26
+ LimaHome string `json:"limaHome"`
25
27
// TODO: add diagnostic info of QEMU
26
28
}
27
29
@@ -34,6 +36,10 @@ func infoAction(cmd *cobra.Command, args []string) error {
34
36
Version : version .Version ,
35
37
DefaultTemplate : y ,
36
38
}
39
+ info .LimaHome , err = dirnames .LimaDir ()
40
+ if err != nil {
41
+ return err
42
+ }
37
43
j , err := json .MarshalIndent (info , "" , " " )
38
44
if err != nil {
39
45
return err
You can’t perform that action at this time.
0 commit comments