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

Method task_list_opener

invoke/program.py:911–925  ·  view source on GitHub ↗
(self, extra: str = "")

Source from the content-addressed store, hash-verified

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 = ""

Callers 1

display_with_columnsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected