* Triggers the provided function, if standard output is enabled * Else does nothing. * * @param {Function} func to execute
(func)
| 368 | * @param {Function} func to execute |
| 369 | */ |
| 370 | async ifStandard(func) { |
| 371 | // Does nothing if not enabled |
| 372 | if(!this.stdOutput) { |
| 373 | return; |
| 374 | } |
| 375 | |
| 376 | await func(); |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Standard output log, enabled unless --silent is used |
nothing calls this directly
no outgoing calls
no test coverage detected