logSubprocessHeader function

void logSubprocessHeader(
  1. Logger logger,
  2. String command, {
  3. Level level = Level.INFO,
})

Implementation

void logSubprocessHeader(Logger logger, String command,
    {Level level = Level.INFO}) {
  final numColumns = io.stdout.hasTerminal ? io.stdout.terminalColumns : 79;
  logger.log(level,
      'Running subprocess:\n${magenta.wrap(command)}\n${'-' * numColumns}\n');
}