UNPKG

524 BJavaScriptView Raw
1const chalk = require('chalk')
2const pkg = require('../../package.json')
3
4module.exports = function header(context) {
5 const title = `${chalk.bgBlack.cyan('⬥ Netlify CLI')}`
6 const docsMsg = `${chalk.greenBright('Read the docs:')} https://www.netlify.com/docs/cli`
7 const supportMsg = `${chalk.magentaBright('Support and bugs:')} ${pkg.bugs.url}`
8
9 // If not command show header
10 if (!context.id) {
11 console.log()
12 console.log(title)
13 console.log(docsMsg)
14 console.log(supportMsg)
15 console.log()
16 }
17}