Skip to content

Commit f9e4974

Browse files
committed
[FEATURE] ✨ Be much less verbose by default
Overwrote robos say method to only print additional messages if a verbosity flag was passed. Refs #14 #17
1 parent ea9d7a2 commit f9e4974

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/RoboFile.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,4 +300,16 @@ protected function getTemporaryDirectory()
300300
->run();
301301
return $result['path'] ?? '';
302302
}
303+
304+
/**
305+
* Overwrite the say method to be less verbose
306+
*
307+
* @param string $text
308+
*/
309+
protected function say($text): void
310+
{
311+
if ($this->io()->isVerbose()) {
312+
parent::say($text);
313+
}
314+
}
303315
}

0 commit comments

Comments
 (0)