Add really-do-it

This commit is contained in:
Jie Hou 2023-09-26 13:56:16 -07:00
parent 513ebd2de3
commit 5e1e426882

View File

@ -1311,6 +1311,11 @@ var actorMovePartitionsCmd = &cli.Command{
}, },
}, },
Action: func(cctx *cli.Context) error { 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() { if cctx.Args().Present() {
return fmt.Errorf("please use flags to provide arguments") return fmt.Errorf("please use flags to provide arguments")
} }