MCPcopy
hub / github.com/google/python-fire / _GetCurrentCommand

Function _GetCurrentCommand

fire/helptext.py:405–411  ·  view source on GitHub ↗

Returns current command for the purpose of generating help text.

(trace=None, include_separators=True)

Source from the content-addressed store, hash-verified

403
404
405def _GetCurrentCommand(trace=None, include_separators=True):
406 """Returns current command for the purpose of generating help text."""
407 if trace:
408 current_command = trace.GetCommand(include_separators=include_separators)
409 else:
410 current_command = ''
411 return current_command
412
413
414def _CreateOutputSection(name: str, content: str) -> str:

Callers 2

_NameSectionFunction · 0.85
_SynopsisSectionFunction · 0.85

Calls 1

GetCommandMethod · 0.80

Tested by

no test coverage detected