UNPKG

sfdx-ftw

Version:
29 lines 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@salesforce/command"); const core_1 = require("@salesforce/core"); // Initialize Messages with the current plugin directory core_1.Messages.importMessagesDirectory(__dirname); const messages = core_1.Messages.loadMessages('sfdx-ftw', 'Checkable'); class Checkable extends command_1.SfdxCommand { async run() { try { let result = await this.runCheck(); return JSON.parse(JSON.stringify(result)); } catch (err) { throw new core_1.SfdxError(err.message); } } } exports.Checkable = Checkable; // require a project and username, support devhub for all Checkables Checkable.supportsDevhubUsername = true; // public static requiresProject = true; // public static requiresUsername = true; // all Checkable instances must include a named checker and a config file Checkable.flagsConfig = { checker: command_1.flags.string({ char: 'c', description: messages.getMessage('checkerFlagDescription'), required: true }), remotecheck: command_1.flags.url({ char: 'r', description: messages.getMessage('remoteFlagDescription') }) }; //# sourceMappingURL=Checkable.js.map