MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / align

Method align

aura/output/text.py:117–121  ·  view source on GitHub ↗
(self, line, pos=-1, left="\u2502 ", right=" \u2502", width=None)

Source from the content-addressed store, hash-verified

115 secho(self.generate_heading(*args, **kwargs), file=self.fd, color=TTY_COLORS)
116
117 def align(self, line, pos=-1, left="\u2502 ", right=" \u2502", width=None):
118 if width is None:
119 width = self.width
120 line = self._align_text(line, width - len(left) - len(right), pos=pos)
121 secho(f"{left}{line}{right}", file=self.fd, color=TTY_COLORS)
122
123 def wrap(self, text, left="\u2502 ", right=" \u2502"):
124 remaining_len=self.width - len(left) - len(right)

Callers 9

wrapMethod · 0.95
pformatMethod · 0.95
print_tablesMethod · 0.95
output_tableMethod · 0.95
output_info_dataMethod · 0.95
output_diffMethod · 0.95
pprintMethod · 0.95
_format_detectionMethod · 0.80
outputMethod · 0.80

Calls 1

_align_textMethod · 0.95

Tested by

no test coverage detected