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