MCPcopy Index your code
hub / github.com/pyinvoke/invoke / list_tasks

Method list_tasks

invoke/program.py:807–815  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers 2

parse_cleanupMethod · 0.95
print_helpMethod · 0.95

Calls 1

ExitClass · 0.85

Tested by

no test coverage detected