Skip to content

Commit dc74a07

Browse files
committed
💄 Update console output to link to file in Goland console
1 parent 94f9a44 commit dc74a07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/run.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function run(urlStr, body, options) {
3030
console.log(`Status: ${res.status} ${res.statusText}`)
3131
console.log(`Request: ${opts.method} ${url}`)
3232
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(", ")}`)
3434

3535
comment = buildComment(url, path, opts.method, res)
3636
return res.json()
@@ -56,8 +56,8 @@ function write(json, path, content) {
5656
});
5757
console.log()
5858
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`)
6161
}
6262

6363
function buildOpts(body, cliOpts) {
@@ -117,7 +117,7 @@ function buildComment(url, path, method, res) {
117117
comment += `\n//\tFormat: ${path.path.pathFormat}`
118118
}
119119
if (cfg?.["docs"] !== undefined) {
120-
comment += `\n//\tDocs: ${cfg?.["docs"]}`
120+
comment += `\n//\tDocs: ${cfg?.["docs"].join(", ")}`
121121
}
122122
return `${comment}\n`
123123
}

0 commit comments

Comments
 (0)