(self)
| 805 | print("") |
| 806 | |
| 807 | def list_tasks(self) -> None: |
| 808 | # Short circuit if no tasks to show (Collection now implements bool) |
| 809 | focus = self.scoped_collection |
| 810 | if not focus: |
| 811 | msg = "No tasks found in collection '{}'!" |
| 812 | raise Exit(msg.format(focus.name)) |
| 813 | # TODO: now that flat/nested are almost 100% unified, maybe rethink |
| 814 | # this a bit? |
| 815 | getattr(self, "list_{}".format(self.list_format))() |
| 816 | |
| 817 | def list_flat(self) -> None: |
| 818 | pairs = self._make_pairs(self.scoped_collection) |
no test coverage detected