UNPKG

fedapay-cli

Version:
30 lines (29 loc) 843 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const command_1 = tslib_1.__importStar(require("@oclif/command")); const user_config_1 = tslib_1.__importDefault(require("./helpers/user-config")); /** * Base command class */ class default_1 extends command_1.default { async init() { this.userConfig = new user_config_1.default(this.config.configDir); } } exports.default = default_1; /** * The command global flags */ default_1.flags = { 'api-key': command_1.flags.string({ description: 'Your API key to use for the command', default: '', }), environment: command_1.flags.string({ description: 'FedaPay Api environment', default: '', char: 'e', options: ['development', 'sandbox', 'live'] }), };