@@ -95,6 +95,9 @@ class DoitReporter(object):
9595 output results after finish
9696 """
9797
98+ skip_detection = True
99+ simulation_mode = False
100+
98101 desc = 'output after finish'
99102
100103 show_out = False
@@ -160,11 +163,19 @@ def add_success(self, task):
160163 duration = self .duration (durationSeconds )
161164 progress = self .calc_progress ()
162165
163- if durationSeconds >= 2 :
164- self .writeln (colored ('. %s finished (%s, %s)' % (BaseTaskLoader .human_task_name (task .title ()), duration , progress ), 'green' ))
166+ if DoitReporter .simulation_mode :
167+ self .writeln (
168+ colored ('. %s simulated (%s, %s)' % (BaseTaskLoader .human_task_name (task .title ()), duration , progress ), 'blue' )
169+ )
165170 else :
166- self .writeln (colored (
167- '. %s SKIPPED (%s, %s)' % (BaseTaskLoader .human_task_name (task .title ()), duration , progress ), 'yellow' ))
171+ if DoitReporter .skip_detection and durationSeconds < 1 :
172+ self .writeln (
173+ colored ('. %s SKIPPED (%s, %s)' % (BaseTaskLoader .human_task_name (task .title ()), duration , progress ), 'yellow' )
174+ )
175+ else :
176+ self .writeln (
177+ colored ('. %s finished (%s, %s)' % (BaseTaskLoader .human_task_name (task .title ()), duration , progress ), 'green' )
178+ )
168179
169180 def skip_uptodate (self , task ):
170181 """
0 commit comments