MCPcopy
hub / github.com/deadc0de6/dotdrop / emph

Method emph

dotdrop/logger.py:46–54  ·  view source on GitHub ↗

emphasis log

(self, string, stdout=True)

Source from the content-addressed store, hash-verified

44 sys.stdout.write(f'\t{cstart}->{cend} {string}{end}')
45
46 def emph(self, string, stdout=True):
47 """emphasis log"""
48 cstart = self._color(self.EMPH)
49 cend = self._color(self.RESET)
50 content = f'{cstart}{string}{cend}'
51 if not stdout:
52 sys.stderr.write(content)
53 else:
54 sys.stdout.write(content)
55
56 def err(self, string, end='\n'):
57 """error log"""

Callers 6

_dotfile_compareFunction · 0.80
cmd_list_profilesFunction · 0.80
cmd_filesFunction · 0.80
cmd_detailFunction · 0.80
_print_diffMethod · 0.80

Calls 1

_colorMethod · 0.95

Tested by

no test coverage detected