UNPKG

fedapay-cli

Version:
30 lines (29 loc) 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const command_1 = tslib_1.__importDefault(require("@oclif/command")); const chalk_1 = tslib_1.__importDefault(require("chalk")); const user_config_1 = tslib_1.__importDefault(require("../helpers/user-config")); /** * Profile Class extending superClass Command */ class Profile extends command_1.default { async run() { const { account_name, environment, secret_key, public_key } = (new user_config_1.default(this.config.configDir)).readAll(); this.log(chalk_1.default.bold.blue('Accnount name: ') + chalk_1.default.bold(account_name)); this.log(chalk_1.default.bold.blue('Environment: ') + chalk_1.default.bold(environment)); this.log(chalk_1.default.bold.blue('Secret key: ') + chalk_1.default.bold(secret_key)); this.log(chalk_1.default.bold.blue('Public Key: ') + chalk_1.default.bold(public_key)); } } exports.default = Profile; /** * @param string * Description of the profile command */ Profile.description = 'Display current login information'; /** * @param string * profile usage */ Profile.usage = 'profile [parameters...]';