MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / to_strings

Method to_strings

cmd2/completion.py:235–237  ·  view source on GitHub ↗

Return a tuple of the completion strings (the 'text' field of each item).

(self)

Source from the content-addressed store, hash-verified

233 return cls(items=items, is_sorted=is_sorted)
234
235 def to_strings(self) -> tuple[str, ...]:
236 """Return a tuple of the completion strings (the 'text' field of each item)."""
237 return tuple(item.text for item in self.items)
238
239 # --- Sequence Protocol Functions ---
240

Callers 15

_complete_flagsMethod · 0.80
delimiter_completeMethod · 0.80
_perform_completionMethod · 0.80
test_command_completionFunction · 0.80
test_complete_macroFunction · 0.80
test_help_completionFunction · 0.80
test_set_bool_completionFunction · 0.80

Calls

no outgoing calls