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

Function _NewChoicesSection

fire/helptext.py:616–621  ·  view source on GitHub ↗
(name, choices)

Source from the content-addressed store, hash-verified

614
615
616def _NewChoicesSection(name, choices):
617 name_formatted = formatting.Bold(formatting.Underline(name))
618 return _CreateItem(
619 f'{name_formatted} is one of the following:',
620 '\n' + '\n\n'.join(choices),
621 indent=1)
622
623
624def UsageText(component, trace=None, verbose=False):

Callers 3

_UsageDetailsSectionsFunction · 0.85
_MakeUsageDetailsSectionFunction · 0.85

Calls 1

_CreateItemFunction · 0.85

Tested by

no test coverage detected