From 6102cbcd470388ffde0ecadbc430340e4d586193 Mon Sep 17 00:00:00 2001 From: ZackSoul <2269713951@qq.com> Date: Tue, 12 Dec 2023 10:56:35 +0800 Subject: [PATCH] add the status Signed-off-by: ZackSoul <2269713951@qq.com> --- tools-v2/README.md | 1 + tools-v2/pkg/cli/command/curvebs/query/snapshot/snapshot.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools-v2/README.md b/tools-v2/README.md index 081adf5b5f..3a4cdc7fbc 100644 --- a/tools-v2/README.md +++ b/tools-v2/README.md @@ -1469,6 +1469,7 @@ Usage: ```shell curve bs query snapshot --path /test/test111 --snapshotstatus done +(other status: "in-progess" "deleting" "errorDeleteing" "canceling" "error") ``` Output: diff --git a/tools-v2/pkg/cli/command/curvebs/query/snapshot/snapshot.go b/tools-v2/pkg/cli/command/curvebs/query/snapshot/snapshot.go index 0b96aa7555..062161a681 100644 --- a/tools-v2/pkg/cli/command/curvebs/query/snapshot/snapshot.go +++ b/tools-v2/pkg/cli/command/curvebs/query/snapshot/snapshot.go @@ -36,7 +36,8 @@ import ( ) const ( - snapshotExample = `$ curve bs query snapshot --path /test/test111 --snapshotstatus done` + snapshotExample = `$ curve bs query snapshot --path /test/test111 --snapshotstatus done + (other status: "in-progress" "deleting" "errorDeleteing" "canceling" "error")` ) type SnapShotCommand struct {