queirozfcom / rachinations

Other
2 stars 0 forks source link

Running a diagram can't just terminate and print nothing. #85

Closed queirozfcom closed 9 years ago

queirozfcom commented 9 years ago

Even if a .rb file contains nothing but a Diagram definition and nothing else, something should be printed so that to users it doesn't look like nothing happened - tell me again why I downloaded this gem?

Maybe just something like this for starters:

Diagram 'foo_bar_bar' ran for XX rounds.
Total time elapsed: XX seconds

I think that the default mode could be to show the initial state and the final state of the nodes or counters.

The user should be able to set mode: to :verbose (to show diagram state after every round), :silent (shows just diagram name and total run time) and :default, which just prints the initial and final states

Afterwards we can add more options so that users can fine-tune what gets printed.