cc-zos
Version:
Command-line interface for the ZeppelinOS smart contract platform
31 lines (19 loc) • 985 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _publish = require('../scripts/publish');
var _publish2 = _interopRequireDefault(_publish);
var _runWithTruffle = require('../utils/runWithTruffle');
var _runWithTruffle2 = _interopRequireDefault(_runWithTruffle);
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const name = 'publish';
const signature = `${name}`;
const description = 'publishes your project to the selected network';
const register = program => program.command(signature, { noHelp: true }).usage('--network <network> [options]').description(description).withNetworkOptions().action(action);
async function action(options) {
await (0, _runWithTruffle2.default)(async opts => await (0, _publish2.default)(opts), options);
}
exports.default = { name, signature, description, register, action };