MCPcopy Index your code
hub / github.com/google/python-fire / _CreateAvailabilityLine

Function _CreateAvailabilityLine

fire/helptext.py:763–770  ·  view source on GitHub ↗
(header, items,
                            header_indent=2, items_indent=25,
                            line_length=LINE_LENGTH)

Source from the content-addressed store, hash-verified

761
762
763def _CreateAvailabilityLine(header, items,
764 header_indent=2, items_indent=25,
765 line_length=LINE_LENGTH):
766 items_width = line_length - items_indent
767 items_text = '\n'.join(formatting.WrappedJoin(items, width=items_width))
768 indented_items_text = formatting.Indent(items_text, spaces=items_indent)
769 indented_header = formatting.Indent(header, spaces=header_indent)
770 return indented_header + indented_items_text[len(indented_header):] + '\n'
771
772
773class ActionGroup:

Callers 2

_UsageAvailabilityLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected