(_ *world.World)
| 36 | } |
| 37 | |
| 38 | func rolloutPreRun(_ *world.World) func(*cobra.Command, []string) error { |
| 39 | return func(cmd *cobra.Command, args []string) error { |
| 40 | if p := cmd.Parent(); p != nil { |
| 41 | if p.PersistentPreRunE != nil { |
| 42 | if err := p.PersistentPreRunE(cmd, args); err != nil { |
| 43 | return err |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | return nil |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func runRollout(w *world.World) func(command *cobra.Command, _ []string) error { |
| 52 | return func(command *cobra.Command, _ []string) error { |