(
self, pairs: Sequence[Tuple[str, Optional[str]]], extra: str = ""
)
| 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]]] |
no test coverage detected