UNPKG

cc-zos

Version:

Command-line interface for the ZeppelinOS smart contract platform

20 lines (14 loc) 645 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = remove; var _ControllerFor = require('../models/local/ControllerFor'); var _ControllerFor2 = _interopRequireDefault(_ControllerFor); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function remove({ contracts, packageFile = undefined }) { if (contracts.length === 0) throw new Error('At least one contract name must be provided to remove.'); const controller = (0, _ControllerFor2.default)(packageFile); contracts.forEach(alias => controller.remove(alias)); controller.writePackage(); }