1 | var os = require('os');
|
2 | var paint = require('./color').paint;
|
3 |
|
4 | var isWin = false;
|
5 | if (os.type() === 'Windows_NT') {
|
6 | isWin = true;
|
7 | }
|
8 |
|
9 | exports.arrow = {
|
10 | debug: {
|
11 | start: paint(isWin ? '!- ' : '➠ ').cyan.color,
|
12 | color: 'grey'
|
13 | },
|
14 | info: {
|
15 | start: paint(isWin ? '!- ' : '➠ ').cyan.color,
|
16 | color: null
|
17 | },
|
18 | warn: {
|
19 | start: paint(isWin ? '!- ' : '➠ ').cyan.color,
|
20 | color: 'yellow'
|
21 | },
|
22 | error: {
|
23 | start: paint(isWin ? '!- ' : '➠ ').cyan.color,
|
24 | color: 'red'
|
25 | },
|
26 | start: {
|
27 | start: paint(isWin ? '# ' : '⚑ ').magenta.color,
|
28 | color: 'bold'
|
29 | },
|
30 | end: {
|
31 | start: paint(isWin ? '*- ' : '➥ ').cyan.color,
|
32 | color: null
|
33 | }
|
34 | };
|
35 |
|
36 | exports.simple = {
|
37 | debug: {
|
38 | start: paint('debug').grey.color + ' - '
|
39 | },
|
40 | info: {
|
41 | start: paint('info').green.color + ' - '
|
42 | },
|
43 | warn: {
|
44 | start: paint('warn').yellow.color + ' - '
|
45 | },
|
46 | error: {
|
47 | start: paint('error').red.color + ' - '
|
48 | },
|
49 | start: {
|
50 | start: paint('start').magenta.color + ' - '
|
51 | },
|
52 | end: {
|
53 | start: paint('end').cyan.color + ' - '
|
54 | }
|
55 | };
|