UNPKG

@holographxyz/cli

Version:
29 lines (28 loc) 986 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@oclif/core"); const config_1 = require("../../utils/config"); class Bridge extends core_1.Command { static description = 'Make a bridge request.'; static examples = [ { description: 'Learn how to bridge a Holographable contract', command: '<%= config.bin %> bridge:contract --help', }, { description: 'Learn how to bridge a Holographable NFT', command: '<%= config.bin %> bridge:nft --help', }, ]; /** * Command Entry Point */ async run() { await (0, config_1.ensureConfigFileIsValid)(this.config.configDir, undefined, false); await this.parse(Bridge); this.log(`Welcome to the Holograph Bridge 🌉`); this.log(`To get started, view the help menu by running: holograph bridge --help`); this.exit(); } } exports.default = Bridge;