UNPKG

n8n

Version:

n8n Workflow Automation Tool

22 lines 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LicenseInfoCommand = void 0; const typedi_1 = require("typedi"); const License_1 = require("../../License"); const BaseCommand_1 = require("../BaseCommand"); class LicenseInfoCommand extends BaseCommand_1.BaseCommand { async run() { const license = typedi_1.Container.get(License_1.License); await license.init(); this.logger.info('Printing license information:\n' + license.getInfo()); } async catch(error) { this.logger.error('\nGOT ERROR'); this.logger.info('===================================='); this.logger.error(error.message); } } exports.LicenseInfoCommand = LicenseInfoCommand; LicenseInfoCommand.description = 'Print license information'; LicenseInfoCommand.examples = ['$ n8n license:info']; //# sourceMappingURL=info.js.map