Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 9f65b86 point at it.

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

line 1why, one step back
1import {isVerbose} from './values.js';

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 2–3why, one step back
2import {verboseLog} from './log.js';
3

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

lines 4–5why, one step back
4// When `verbose` is `short|full|custom`, print each command
5export const logCommand = (escapedCommand, verboseInfo) => {

Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199

line 6why, one step back
6 if (!isVerbose(verboseInfo)) {

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 7–9why, one step back
7 return;
8 }9

Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199

lines 10–11why, one step back
10 verboseLog({
11 type: 'command',

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

line 12why, one step back
12 verboseMessage: escapedCommand,

Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199

lines 13–14why, one step back
13 verboseInfo,
14 });

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 15why, one step back
15};