@haechi-labs/henesis-cli
Version:
🚀 Command Line Interface tool to Utilize henesis
42 lines • 1.15 kB
JavaScript
;
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 node_1 = tslib_1.__importDefault(require("../../rpc/node"));
exports.columns = {
platform: {
header: 'Platform',
minWidth: 13,
get: (row) => row.platform,
},
network: {
header: 'Network',
minWidth: 10,
get: (row) => row.network,
},
endpoint: {
header: 'Endpoint',
minWidth: 10,
get: (row) => row.endpoint,
},
};
class Status extends base_1.default {
async run() {
try {
const states = await node_1.default.status();
cli_ux_1.cli.table(states, exports.columns, {
printLine: this.log,
});
}
catch (err) {
this.error(err.message);
}
}
}
exports.default = Status;
Status.description = 'show truested node information';
Status.examples = [`$ henesis node:status`];
Status.flags = {};
Status.args = [];
//# sourceMappingURL=status.js.map