start.js
This file
Path
lib/verbose/start.js
15 lines · 335 bytes · JavaScript
Last changed by
Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
History of this fileTake it
12345678910111213141516import {isVerbose} from './values.js';import {verboseLog} from './log.js';
// When `verbose` is `short|full|custom`, print each commandexport const logCommand = (escapedCommand, verboseInfo) => { if (!isVerbose(verboseInfo)) { return; }
verboseLog({ type: 'command', verboseMessage: escapedCommand, verboseInfo, });};