File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ import (
4
4
"github.com/lima-vm/lima/pkg/instance"
5
5
networks "github.com/lima-vm/lima/pkg/networks/reconcile"
6
6
"github.com/lima-vm/lima/pkg/store"
7
+ "github.com/sirupsen/logrus"
7
8
"github.com/spf13/cobra"
8
9
)
9
10
10
11
func newSaveCommand () * cobra.Command {
11
12
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
+ },
14
18
Args : WrapArgsError (cobra .MaximumNArgs (1 )),
15
19
RunE : saveAction ,
16
20
ValidArgsFunction : saveBashComplete ,
Original file line number Diff line number Diff line change @@ -523,4 +523,7 @@ func warnExperimental(y *LimaYAML) {
523
523
if y .MountInotify != nil && * y .MountInotify {
524
524
logrus .Warn ("`mountInotify` is experimental" )
525
525
}
526
+ if y .SaveOnStop != nil && * y .SaveOnStop {
527
+ logrus .Warn ("`saveOnStop` is experimental" )
528
+ }
526
529
}
You can’t perform that action at this time.
0 commit comments