1 | let chalk = require('chalk')
|
2 | let {version} = require('../package.json')
|
3 | let path = require('path')
|
4 |
|
5 | module.exports = function printVersion () {
|
6 | let log = (label, value) => console.log(chalk.grey(`${label.padStart(13)}:`), chalk.cyan(value))
|
7 | log('Version', `Architect ${version}`)
|
8 | log('Installed to', path.resolve(path.join(__dirname, '..')))
|
9 | log('cwd', process.cwd())
|
10 | }
|