From aa6f96dad51265bc8f44da7b12181594f6878732 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 23 May 2023 23:26:50 +0900 Subject: [PATCH] Mark `limactl snapshot` experimental Due to issue 1569 Signed-off-by: Akihiro Suda --- cmd/limactl/snapshot.go | 4 ++++ docs/experimental.md | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/limactl/snapshot.go b/cmd/limactl/snapshot.go index 96679a0b8f8..ca1a57571d6 100644 --- a/cmd/limactl/snapshot.go +++ b/cmd/limactl/snapshot.go @@ -6,6 +6,7 @@ import ( "github.com/lima-vm/lima/pkg/snapshot" "github.com/lima-vm/lima/pkg/store" + "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) @@ -14,6 +15,9 @@ func newSnapshotCommand() *cobra.Command { var snapshotCmd = &cobra.Command{ Use: "snapshot", Short: "Manage instance snapshots", + PersistentPreRun: func(cmd *cobra.Command, args []string) { + logrus.Warn("`limactl snapshot` is experimental") + }, } snapshotCmd.AddCommand(newSnapshotApplyCommand()) snapshotCmd.AddCommand(newSnapshotCreateCommand()) diff --git a/docs/experimental.md b/docs/experimental.md index b19bd789eda..d1e53b3994b 100644 --- a/docs/experimental.md +++ b/docs/experimental.md @@ -9,7 +9,7 @@ The following features are experimental and subject to change: - `mode: user-v2` in `networks.yml` and relevant configuration in `lima.yaml` - `audio.device` -The following flags are experimental and subject to change: +The following commands are experimental and subject to change: -- `start --set`, yq expression -- `edit --set`, yq expression +- `limactl (start|edit) --set=` +- `limactl snapshot *`