import chalk from 'chalk'; import {command, help, namespace} from 'oo-cli'; import {getEnv, runtimeConfig} from '../../lib/Config'; @namespace('env') export class GetEnvironmentCommand { @command @help('Get the current environment of the CLI') public get() { console.log(`Using ${chalk.yellow(getEnv())} environment\n`); console.log('Configuration:'); console.log(chalk.gray(require('js-yaml').dump(runtimeConfig()))); } }