UNPKG

@holographxyz/cli

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