Skip to content

Commit ffd57dc

Browse files
authored
Merge pull request #1570 from AkihiroSuda/mark-snapshots-experimental
Mark `limactl snapshot` experimental
2 parents 7b0f557 + aa6f96d commit ffd57dc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cmd/limactl/snapshot.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/lima-vm/lima/pkg/snapshot"
88
"github.com/lima-vm/lima/pkg/store"
9+
"github.com/sirupsen/logrus"
910

1011
"github.com/spf13/cobra"
1112
)
@@ -14,6 +15,9 @@ func newSnapshotCommand() *cobra.Command {
1415
var snapshotCmd = &cobra.Command{
1516
Use: "snapshot",
1617
Short: "Manage instance snapshots",
18+
PersistentPreRun: func(cmd *cobra.Command, args []string) {
19+
logrus.Warn("`limactl snapshot` is experimental")
20+
},
1721
}
1822
snapshotCmd.AddCommand(newSnapshotApplyCommand())
1923
snapshotCmd.AddCommand(newSnapshotCreateCommand())

docs/experimental.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following features are experimental and subject to change:
99
- `mode: user-v2` in `networks.yml` and relevant configuration in `lima.yaml`
1010
- `audio.device`
1111

12-
The following flags are experimental and subject to change:
12+
The following commands are experimental and subject to change:
1313

14-
- `start --set`, yq expression
15-
- `edit --set`, yq expression
14+
- `limactl (start|edit) --set=<YQ EXPRESSION>`
15+
- `limactl snapshot *`

0 commit comments

Comments
 (0)