UNPKG

@haechi-labs/henesis-cli

Version:

🚀 Command Line Interface tool to Utilize henesis

59 lines • 1.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const base_1 = tslib_1.__importDefault(require("../../common/base")); const cli_ux_1 = require("cli-ux"); const integration_1 = tslib_1.__importDefault(require("../../rpc/integration")); exports.columns = { integrationId: { header: 'Id', minWidth: 15, }, name: { header: 'Name', minWidth: 10, }, platform: { header: 'Platform', minWidth: 13, get: (row) => row.blockchain.platform, }, network: { header: 'Network', minWidth: 10, get: (row) => row.blockchain.network, }, version: { header: 'Version', minWidth: 10, }, provider: { header: 'Provider', minWidth: 13, get: (row) => row.provider.type, }, state: { header: 'State', minWidth: 15, get: (row) => row.status && row.status.state, }, }; class Status extends base_1.default { async run() { try { const integrations = await integration_1.default.getIntegrations(); cli_ux_1.cli.table(integrations, exports.columns, { printLine: this.log, }); } catch (err) { this.error(err.message); } } } exports.default = Status; Status.description = 'get integrations'; Status.examples = [`$ henesis integration:list`]; Status.flags = {}; Status.args = []; //# sourceMappingURL=status.js.map