clever-tools 3.13.0 → 3.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clever-tools",
3
- "version": "3.13.0",
3
+ "version": "3.13.1",
4
4
  "description": "Command Line Interface for Clever Cloud.",
5
5
  "main": "bin/clever.js",
6
6
  "type": "module",
@@ -9,6 +9,8 @@ import * as ExitStrategy from '../models/exit-strategy-option.js';
9
9
  import { getBest } from './domain.js';
10
10
  import { conf } from './configuration.js';
11
11
 
12
+ const RESET_COLOR = '\x1B[0m';
13
+
12
14
  // 2000 logs per 100ms maximum
13
15
  const THROTTLE_ELEMENTS = 2000;
14
16
  const THROTTLE_PER_IN_MILLISECONDS = 100;
@@ -67,6 +69,7 @@ export async function displayLogs (params) {
67
69
  return;
68
70
  case 'human':
69
71
  default:
72
+ if (log.message === RESET_COLOR) return;
70
73
  Logger.println(formatLogLine(log));
71
74
  }
72
75
  });
@@ -162,7 +165,7 @@ function formatLogLine (log) {
162
165
  else if (isBuildSucessMessage(log)) {
163
166
  return `${date.toISOString()}: ${colors.bold.blue(message)}`;
164
167
  }
165
- return `${date.toISOString()}: ${message}`;
168
+ return `${date.toISOString()}: ${message}${RESET_COLOR}`;
166
169
  }
167
170
 
168
171
  function isCleverMessage (log) {