share/rbbt_commands/workflow/info in rbbt-util-5.21.102 vs share/rbbt_commands/workflow/info in rbbt-util-5.21.103
- old
+ new
@@ -111,10 +111,21 @@
messages.each do |msg|
puts " " << msg
end
end
+if status != :done && step.file('progress').exists?
+ progress = step.file('progress').yaml
+ str = Log.color(:magenta, "Progress") << ": "
+ if progress[:last_percent]
+ str << progress[:last_percent].to_s << "%"
+ else
+ str << progress[:ticks].to_s << " items"
+ end
+ puts str
+end
+
if status == :error
puts Log.color(:magenta, "Backtrace") << ": "
puts Log.color_stack backtrace
end
@@ -153,6 +164,7 @@
text << "\n\n...\n\n" if lines.length > 6
puts Misc.format_definition_list_item(" " << input.to_s, text, 80, 20, :blue).gsub("\n\n","\n")
end
end
end
+
end