Function
logC
(block, text, indetion = 0, color = 'blue')
Source from the content-addressed store, hash-verified
| 75 | } |
| 76 | |
| 77 | function logC(block, text, indetion = 0, color = 'blue') { |
| 78 | let nColor = 0; |
| 79 | switch (color) { |
| 80 | case 'red': |
| 81 | nColor = 31; |
| 82 | break; |
| 83 | case 'blue': |
| 84 | nColor = 36; |
| 85 | break; |
| 86 | case 'green': |
| 87 | nColor = 32; |
| 88 | break; |
| 89 | case 'yellow': |
| 90 | nColor = 33; |
| 91 | break; |
| 92 | } |
| 93 | text = `\x1b[${nColor}m${text}\x1b[0m`; |
| 94 | log(block, text, indetion); |
| 95 | } |
| 96 | |
| 97 | function printLogBlock(block) { |
| 98 | if (mode.blockLog && logBlocks[block]) { |
Tested by
no test coverage detected