Add really-do-it

This commit is contained in:
Jie Hou
2023-10-02 16:56:56 -07:00
parent 513ebd2de3
commit 5e1e426882
+5
View File
@@ -1311,6 +1311,11 @@ var actorMovePartitionsCmd = &cli.Command{
},
},
Action: func(cctx *cli.Context) error {
if !cctx.Bool("really-do-it") {
fmt.Println("Pass --really-do-it to actually execute this action")
return nil
}
if cctx.Args().Present() {
return fmt.Errorf("please use flags to provide arguments")
}