UNPKG

dop-stick

Version:

Source control tooling for versionable-upgradeable smart contracts

26 lines 946 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.showModule = void 0; exports.showModule = { command: 'show-module [moduleNumber]', describe: 'Show detailed information for a specific module from the last upgrade summary', builder: { moduleNumber: { type: 'number', description: 'The module number to display details for' } }, handler: async (argv) => { const context = global.dopStickContext; if (!(context === null || context === void 0 ? void 0 : context.finalSummary)) { console.log('No upgrade summary available. Please run an upgrade first.'); return; } if (!argv.moduleNumber) { context.finalSummary.listAvailableModules(); return; } context.finalSummary.displayModuleDetailsById(argv.moduleNumber); } }; //# sourceMappingURL=showModule.js.map