You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
335 B
15 lines
335 B
import {isVerbose} from './values.js';
|
|
import {verboseLog} from './log.js';
|
|
|
|
// When `verbose` is `short|full|custom`, print each command
|
|
export const logCommand = (escapedCommand, verboseInfo) => {
|
|
if (!isVerbose(verboseInfo)) {
|
|
return;
|
|
}
|
|
|
|
verboseLog({
|
|
type: 'command',
|
|
verboseMessage: escapedCommand,
|
|
verboseInfo,
|
|
});
|
|
};
|