intreface.cli
Version:
Intreface Dev Tools
27 lines (26 loc) • 843 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("@oclif/command");
const system_1 = require("../@utility/system");
const chalk_1 = require("chalk");
class Info extends command_1.Command {
async run() {
const { args } = this.parse(Info);
switch (args.info) {
case 'config':
console.log(chalk_1.default.cyan(system_1.prettyJSON(system_1.readConfig())));
break;
default:
this.error(`${chalk_1.default.red('💩')} required argument is ${chalk_1.default.red.underline('Missing')}`);
break;
}
}
}
exports.default = Info;
Info.description = 'Display info';
Info.args = [
{ name: 'info' },
];
Info.examples = [
`$ intreface info config`,
];