All files / lib help.js

60% Statements 12/20
100% Branches 1/1
0% Functions 0/1
60% Lines 12/20

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2127x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x 27x                  
'use strict'
 
const {
  header,
  rawBox
} = require('./ncm-style')
const L = console.log
 
module.exports = {
  helpHeader
}
 
function helpHeader (cmd, usage, usageRaw, description) {
  L()
  L(header(`NCM CLI Help: ncm ${cmd}`))
  description ? L(description) : L()
  L('Usage:')
  L(rawBox(usage, usageRaw.length || usage.length))
  L()
}