MCPcopy
hub / github.com/treeverse/dvc / format

Method format

dvc/ui/__init__.py:49–52  ·  view source on GitHub ↗
(self, message: str, style: Optional[str] = None, **kwargs)

Source from the content-addressed store, hash-verified

47 self.theme = defaultdict(lambda: defaults or {}, theme)
48
49 def format(self, message: str, style: Optional[str] = None, **kwargs) -> str:
50 from dvc.utils import colorize
51
52 return colorize(message, **self.theme[style])
53
54
55class Console:

Callers 15

colorizeFunction · 0.45
boxifyFunction · 0.45
resolve_pathsFunction · 0.45
format_linkFunction · 0.45
parse_targetFunction · 0.45
joinFunction · 0.45
get_summaryFunction · 0.45
_format_exc_msgFunction · 0.45
get_or_create_stageFunction · 0.45
translate_graph_errorFunction · 0.45
warn_link_failuresFunction · 0.45
statusFunction · 0.45

Calls 1

colorizeFunction · 0.90

Tested by 1

test_filesystemMethod · 0.36