UNPKG

bod

Version:
31 lines (30 loc) 1.05 kB
import { __awaiter } from "tslib"; import { envinfo, printer } from '../utils/index.js'; import BaseCommand from './BaseCommand.js'; class InfoCommand extends BaseCommand { constructor() { super({ name: 'info', description: 'Print debugging information about your environment', usage: 'info', }); } run(_appName) { return __awaiter(this, void 0, void 0, function* () { printer.info(`Environment information:`); const envInfo = yield envinfo.run({ System: ['OS', 'CPU'], Binaries: ['Node', 'Yarn', 'npm'], Browsers: ['Chrome', 'Edge', 'Firefox', 'Safari'], npmPackages: '/**/{typescript,*react*,@sabertazimi/*/}', npmGlobalPackages: ['@sabertazimi/bod'], }, { showNotFound: true, duplicates: true, fullTree: true, }); printer.info(envInfo); }); } } export default InfoCommand;