start.js 335 B

123456789101112131415
  1. import {isVerbose} from './values.js';
  2. import {verboseLog} from './log.js';
  3. // When `verbose` is `short|full|custom`, print each command
  4. export const logCommand = (escapedCommand, verboseInfo) => {
  5. if (!isVerbose(verboseInfo)) {
  6. return;
  7. }
  8. verboseLog({
  9. type: 'command',
  10. verboseMessage: escapedCommand,
  11. verboseInfo,
  12. });
  13. };