@@ -30,7 +30,7 @@ function run(urlStr, body, options) {
30
30
console . log ( `Status: ${ res . status } ${ res . statusText } ` )
31
31
console . log ( `Request: ${ opts . method } ${ url } ` )
32
32
if ( path . path . pathFormat ) console . log ( `Format: ${ path . path . pathFormat } ` )
33
- if ( cfg ?. [ "docs" ] !== undefined ) console . log ( `Docs: ${ cfg ?. [ "docs" ] } ` )
33
+ if ( cfg ?. [ "docs" ] !== undefined ) console . log ( `Docs: ${ cfg ?. [ "docs" ] . join ( ", " ) } ` )
34
34
35
35
comment = buildComment ( url , path , opts . method , res )
36
36
return res . json ( )
@@ -56,8 +56,8 @@ function write(json, path, content) {
56
56
} ) ;
57
57
console . log ( )
58
58
console . log ( "Generated Files:" )
59
- console . log ( ` - ${ path . goFilePath } ` )
60
- console . log ( ` - ${ path . jsonFilePath } ` )
59
+ console . log ( ` - ${ path . goFilePath } :1 ` )
60
+ console . log ( ` - ${ path . jsonFilePath } :1 ` )
61
61
}
62
62
63
63
function buildOpts ( body , cliOpts ) {
@@ -117,7 +117,7 @@ function buildComment(url, path, method, res) {
117
117
comment += `\n//\tFormat: ${ path . path . pathFormat } `
118
118
}
119
119
if ( cfg ?. [ "docs" ] !== undefined ) {
120
- comment += `\n//\tDocs: ${ cfg ?. [ "docs" ] } `
120
+ comment += `\n//\tDocs: ${ cfg ?. [ "docs" ] . join ( ", " ) } `
121
121
}
122
122
return `${ comment } \n`
123
123
}
0 commit comments