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 {