Skip to content

Commit

Permalink
add filepath in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalAnalyst committed Dec 19, 2023
1 parent 48b6138 commit 9ce7daf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions tools-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2007,16 +2007,16 @@ recover volume from recycleBin

Usage:
```shell
curve bs recover volume --path /test/volumepath --user root
curve bs recover volume --path /test/path --user root
```

Output:
```
+---------+
| RESULT |
+---------+
| success |
+---------+
+---------+-----------+
| RESULT | FILEPATH |
+---------+-----------+
| success | test/path |
+---------+-----------+
```


Expand Down
18 changes: 9 additions & 9 deletions tools-v2/pkg/cli/command/curvebs/recover/volume/recover.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ import (
"github.com/opencurve/curve/tools-v2/proto/proto/nameserver2"
)

// NewCommand return the mid cli
func NewRecoverFileCommand() *RecoverFileCommand {
RecoverFileCommand := &RecoverFileCommand{
FinalCurveCmd: basecmd.FinalCurveCmd{},
}
basecmd.NewFinalCurveCli(&RecoverFileCommand.FinalCurveCmd, RecoverFileCommand)
return RecoverFileCommand
}

type RecoverCertainFileRPC struct {
Info *basecmd.Rpc
Request *nameserver2.RecoverFileRequest
Expand Down Expand Up @@ -131,12 +140,3 @@ func RecoverFile(caller *cobra.Command) (*nameserver2.RecoverFileResponse, *cmde
}
return rCmd.Response, cmderror.Success()
}

// NewCommand return the mid cli
func NewRecoverFileCommand() *RecoverFileCommand {
RecoverFileCommand := &RecoverFileCommand{
FinalCurveCmd: basecmd.FinalCurveCmd{},
}
basecmd.NewFinalCurveCli(&RecoverFileCommand.FinalCurveCmd, RecoverFileCommand)
return RecoverFileCommand
}

0 comments on commit 9ce7daf

Please sign in to comment.