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

Method display_with_columns

invoke/program.py:927–942  ·  view source on GitHub ↗
(
        self, pairs: Sequence[Tuple[str, Optional[str]]], extra: str = ""
    )

Source from the content-addressed store, hash-verified

925 return text
926
927 def display_with_columns(
928 self, pairs: Sequence[Tuple[str, Optional[str]]], extra: str = ""
929 ) -> None:
930 root = self.list_root
931 print("{}:\n".format(self.task_list_opener(extra=extra)))
932 self.print_columns(pairs)
933 # TODO: worth stripping this out for nested? since it's signified with
934 # asterisk there? ugggh
935 default = self.scoped_collection.default
936 if default:
937 specific = ""
938 if root:
939 specific = " '{}'".format(root)
940 default = ".{}".format(default)
941 # TODO: trim/prefix dots
942 print("Default{} task: {}\n".format(specific, default))
943
944 def print_columns(
945 self, tuples: Sequence[Tuple[str, Optional[str]]]

Callers 2

list_flatMethod · 0.95
list_nestedMethod · 0.95

Calls 2

task_list_openerMethod · 0.95
print_columnsMethod · 0.95

Tested by

no test coverage detected