@@ -13,6 +13,7 @@ let specSummary = {
13
13
"specs" : [ ] ,
14
14
"duration" : null
15
15
}
16
+ let noWrap = utils . searchForOption ( '--no-wrap' )
16
17
let terminalWidth = ( process . stdout . columns ) * 0.9 ;
17
18
18
19
let getOptions = ( auth , build_id ) => {
@@ -34,11 +35,11 @@ let getTableConfig = () => {
34
35
return {
35
36
border : getBorderConfig ( ) ,
36
37
columns : {
37
- 1 : { alignment : 'center' , width : Math . ceil ( terminalWidth * 0.01 ) } ,
38
- 2 : { alignment : 'left' , width : Math . floor ( terminalWidth * 0.75 ) }
38
+ 1 : { alignment : 'center' , width : noWrap ? 1 : Math . ceil ( terminalWidth * 0.01 ) } ,
39
+ 2 : { alignment : 'left' , width : noWrap ? 100 : Math . floor ( terminalWidth * 0.75 ) }
39
40
} ,
40
41
columnDefault : {
41
- width : Math . floor ( terminalWidth * 0.2 ) ,
42
+ width : noWrap ? 30 : Math . floor ( terminalWidth * 0.2 ) ,
42
43
} ,
43
44
columnCount : 3 ,
44
45
} ;
@@ -81,7 +82,7 @@ let printSpecsStatus = (bsConfig, buildDetails) => {
81
82
whileProcess ( callback )
82
83
} ,
83
84
function ( err , result ) { // when loop ends
84
- logger . info ( "\n" + "-" . repeat ( terminalWidth ) )
85
+ noWrap ? logger . info ( "\n--------------------------------------------------------------------------------" ) : logger . info ( "\n" + "-" . repeat ( terminalWidth ) )
85
86
specSummary . duration = endTime - startTime
86
87
resolve ( specSummary )
87
88
}
@@ -139,7 +140,7 @@ let showSpecsStatus = (data) => {
139
140
140
141
let printInitialLog = ( ) => {
141
142
logger . info ( `\n${ Constants . syncCLI . LOGS . INIT_LOG } ` )
142
- logger . info ( "\n" + "-" . repeat ( terminalWidth ) )
143
+ noWrap ? logger . info ( "\n--------------------------------------------------------------------------------" ) : logger . info ( "\n" + "-" . repeat ( terminalWidth ) )
143
144
n = Constants . syncCLI . INITIAL_DELAY_MULTIPLIER
144
145
}
145
146
0 commit comments