MCPcopy
hub / github.com/insanum/gcalcli / msg

Method msg

gcalcli/printer.py:88–91  ·  view source on GitHub ↗
(self, msg, colorname='default', file=sys.stdout)

Source from the content-addressed store, hash-verified

86 return self.colors.get(colorname, '')
87
88 def msg(self, msg, colorname='default', file=sys.stdout):
89 if self.use_color:
90 msg = self.colors[colorname] + msg + self.colors['default']
91 file.write(msg)
92
93 def err_msg(self, msg):
94 self.msg(msg, 'brightred', file=sys.stderr)

Callers 15

test_all_colorsFunction · 0.95
test_red_msgFunction · 0.95
test_conky_red_msgFunction · 0.95
test_no_colorFunction · 0.95
mainFunction · 0.95
err_msgMethod · 0.95
debug_msgMethod · 0.95
art_msgMethod · 0.95
run_add_promptFunction · 0.80
set_resolved_calendarsFunction · 0.80
authenticateFunction · 0.80
get_inputFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_all_colorsFunction · 0.76
test_red_msgFunction · 0.76
test_conky_red_msgFunction · 0.76
test_no_colorFunction · 0.76