({ body, packageName })
| 325 | } |
| 326 | |
| 327 | displayResponseBody ({ body, packageName }) { |
| 328 | if (!body || body.length === 0) { |
| 329 | this.dialogue`No trust configurations found for package (${packageName})` |
| 330 | return |
| 331 | } |
| 332 | const items = Array.isArray(body) ? body : [body] |
| 333 | for (const config of items) { |
| 334 | const values = this.constructor.bodyToOptions(config) |
| 335 | const permissions = config.permissions |
| 336 | output.standard() |
| 337 | this.logOptions({ values, permissions }, false) |
| 338 | } |
| 339 | output.standard() |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | module.exports = TrustCommand |
no test coverage detected