Skip to content

Commit de78015

Browse files
committed
Add experimental warning to limactl start and .saveOnStop
Signed-off-by: Norio Nomura <[email protected]>
1 parent 1d533a7 commit de78015

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

cmd/limactl/save.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ import (
44
"github.com/lima-vm/lima/pkg/instance"
55
networks "github.com/lima-vm/lima/pkg/networks/reconcile"
66
"github.com/lima-vm/lima/pkg/store"
7+
"github.com/sirupsen/logrus"
78
"github.com/spf13/cobra"
89
)
910

1011
func newSaveCommand() *cobra.Command {
1112
saveCmd := &cobra.Command{
12-
Use: "save INSTANCE",
13-
Short: "Save an instance",
13+
Use: "save INSTANCE",
14+
Short: "Save an instance",
15+
PersistentPreRun: func(*cobra.Command, []string) {
16+
logrus.Warn("`limactl save` is experimental")
17+
},
1418
Args: WrapArgsError(cobra.MaximumNArgs(1)),
1519
RunE: saveAction,
1620
ValidArgsFunction: saveBashComplete,

pkg/limayaml/validate.go

+3
Original file line numberDiff line numberDiff line change
@@ -523,4 +523,7 @@ func warnExperimental(y *LimaYAML) {
523523
if y.MountInotify != nil && *y.MountInotify {
524524
logrus.Warn("`mountInotify` is experimental")
525525
}
526+
if y.SaveOnStop != nil && *y.SaveOnStop {
527+
logrus.Warn("`saveOnStop` is experimental")
528+
}
526529
}

0 commit comments

Comments
 (0)