Beispiel #1
0
 def error(self, *args, **kwargs):
   exit = kwargs.pop('exit', 1)
   kwargs.setdefault('fg', 'red')
   kwargs.setdefault('attr', ('bright',))
   # kwargs.setdefault('file', sys.stderr)
   term_print('==> creator:', *args, **kwargs)
   if exit is not None:
     sys.exit(1)
Beispiel #2
0
 def info(self, *args, **kwargs):
   kwargs.setdefault('fg', 'cyan')
   # kwargs.setdefault('file', sys.stderr)
   term_print('==> creator:', *args, **kwargs)
Beispiel #3
0
 def warn(self, *args, **kwargs):
   kwargs.setdefault('fg', 'magenta')
   # kwargs.setdefault('file', sys.stderr)
   term_print('==> creator:', *args, **kwargs)
Beispiel #4
0
def log(*args, **kwargs):
  kwargs.setdefault('fg', 'cyan')
  term_print('creator:', *args, **kwargs)