##// END OF EJS Templates
formatting
José Chávez -
r1084:354be9b79eeb
parent child
Show More
@@ -1,4 +1,4
1 # schaing
1 # schain
2 2
3 3 Command Line Interface for SIGNAL CHAIN - jro
4 4
@@ -108,7 +108,8 class BLTRParamReader(JRODataReader, ProcessingUnit):
108 108 startTime=datetime.time(0, 0, 0),
109 109 endTime=datetime.time(23, 59, 59),
110 110 timezone=0,
111 status_value=0, **kwargs):
111 status_value=0,
112 **kwargs):
112 113
113 114 self.path = path
114 115 self.startTime = startTime
@@ -17,6 +17,7 SCHAINPY - LOG
17 17
18 18 import click
19 19
20
20 21 def warning(message, tag='Warning'):
21 22 click.echo(click.style('[{}] {}'.format(tag, message), fg='yellow'))
22 23 pass
@@ -39,6 +40,6 def log(message, tag='Info'):
39 40
40 41 def makelogger(tag, bg='reset', fg='reset'):
41 42 def func(message):
42 click.echo(click.style('[{}] {}'.format(tag.upper(), message),
43 bg=bg, fg=fg))
43 click.echo(click.style('[{}] {}'.format(
44 tag.upper(), message), bg=bg, fg=fg))
44 45 return func
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now