Open perrygoy opened 1 year ago
This one will probably need a new Narrator
method that skips any kinks.
I think skipping kinks would completely nullify how Eventually works. We depend on the kinking to toss away the repeated loops in Eventually. If someone wrapped Loudly
around actions that use Eventually
the logging would look pretty atrocious.
Since we're adding
Quietly
in #71, let's addLoudly
to do the exact opposite!Say you've got a complicated Task that does like, twelve other Tasks. You normally don't want those other Tasks logged, so you wrap them in a
Quietly
so the top-Task can summarize what they're doing. But during one of the sub-sub-sub-Tasks, you enter a string into an input field that you really need to know to debug when the test goes wrong.Enter text loudly with
Loudly
!Loudly
will make sure that no matter whether aQuietly
on the outside told the Narrator to be quiet, or aQuietly
inside of it tries to stop narrating, everything it's passed will be narrated. LOUDLY!