1 | const chalk = require('chalk')
|
2 | const pkg = require('../../package.json')
|
3 |
|
4 | module.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 | }
|