This repository was archived by the owner on Feb 2, 2021. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ interface ILogger {
7
7
info ( formatStr ?: any , ...args : string [ ] ) : void ;
8
8
debug ( formatStr ?: any , ...args : string [ ] ) : void ;
9
9
trace ( formatStr ?: any , ...args : string [ ] ) : void ;
10
- printMarkdown ( message : string ) : void ;
10
+ printMarkdown ( ... args : string [ ] ) : void ;
11
11
12
12
out ( formatStr ?: any , ...args : string [ ] ) : void ;
13
13
write ( ...args : string [ ] ) : void ;
14
14
15
15
prepare ( item : any ) : string ;
16
16
printInfoMessageOnSameLine ( message : string ) : void ;
17
17
printMsgWithTimeout ( message : string , timeout : number ) : IFuture < void > ;
18
- }
18
+ }
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export class Logger implements ILogger {
119
119
return printMsgFuture ;
120
120
}
121
121
122
- public printMarkdown ( message : string ) : void {
122
+ public printMarkdown ( ... args : string [ ] ) : void {
123
123
let opts = {
124
124
unescape : true ,
125
125
link : chalk . red ,
@@ -136,7 +136,7 @@ export class Logger implements ILogger {
136
136
} ;
137
137
138
138
marked . setOptions ( { renderer : new TerminalRenderer ( opts ) } ) ;
139
- let formattedMessage = marked ( message ) ;
139
+ let formattedMessage = marked ( util . format . apply ( null , args ) ) ;
140
140
this . write ( formattedMessage ) ;
141
141
}
142
142
You can’t perform that action at this time.
0 commit comments