beeline-cli
Version:
A terminal wallet for the Hive blockchain - type, sign, rule the chain
28 lines • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const neon_js_1 = require("../utils/neon.js");
class Version extends core_1.Command {
async run() {
const theme = await (0, neon_js_1.getTheme)();
const pkg = require('../../package.json');
const versionInfo = [
`${theme.chalk.glow('beeline-cli')} ${theme.chalk.highlight('v' + pkg.version)}`,
``,
`${theme.chalk.success('Node.js')} ${neon_js_1.neonSymbols.arrow} ${process.version}`,
`${theme.chalk.accent('Platform')} ${neon_js_1.neonSymbols.arrow} ${process.platform} ${process.arch}`,
`${theme.chalk.glow('Runtime')} ${neon_js_1.neonSymbols.arrow} ${process.title}`,
``,
`${theme.chalk.info('Built for the terminal matrix')}`
].join('\n');
console.log(theme.createBox(versionInfo, `${neon_js_1.neonSymbols.star} SYSTEM INFO ${neon_js_1.neonSymbols.star}`));
console.log('');
console.log(theme.chalk.pulse('◆ Hive Terminal Wallet ◆ Multi-Theme Edition ◆'));
}
}
Version.description = 'Display version information with neon flair';
Version.examples = [
`$ beeline version`,
];
exports.default = Version;
//# sourceMappingURL=version.js.map