File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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
1011func 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 ,
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments