Revert flow changes.
(self, flows: Sequence[flow.Flow])
| 105 | # FIXME: this will become view.revert later |
| 106 | @command.command("flow.revert") |
| 107 | def revert(self, flows: Sequence[flow.Flow]) -> None: |
| 108 | """ |
| 109 | Revert flow changes. |
| 110 | """ |
| 111 | updated = [] |
| 112 | for f in flows: |
| 113 | if f.modified(): |
| 114 | f.revert() |
| 115 | updated.append(f) |
| 116 | logger.log(ALERT, "Reverted %s flows." % len(updated)) |
| 117 | ctx.master.addons.trigger(hooks.UpdateHook(updated)) |
| 118 | |
| 119 | @command.command("flow.set.options") |
| 120 | def flow_set_options(self) -> Sequence[str]: |