(self, extra: str = "")
| 909 | print(json.dumps(data)) |
| 910 | |
| 911 | def task_list_opener(self, extra: str = "") -> str: |
| 912 | root = self.list_root |
| 913 | depth = self.list_depth |
| 914 | specifier = " '{}'".format(root) if root else "" |
| 915 | tail = "" |
| 916 | if depth or extra: |
| 917 | depthstr = "depth={}".format(depth) if depth else "" |
| 918 | joiner = "; " if (depth and extra) else "" |
| 919 | tail = " ({}{}{})".format(depthstr, joiner, extra) |
| 920 | text = "Available{} tasks{}".format(specifier, tail) |
| 921 | # TODO: do use cases w/ bundled namespace want to display things like |
| 922 | # root and depth too? Leaving off for now... |
| 923 | if self.namespace is not None: |
| 924 | text = "Subcommands" |
| 925 | return text |
| 926 | |
| 927 | def display_with_columns( |
| 928 | self, pairs: Sequence[Tuple[str, Optional[str]]], extra: str = "" |
no outgoing calls
no test coverage detected