UNPKG

zippycli

Version:
63 lines (48 loc) 1.31 kB
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /* eslint-disable import/no-default-export */ import { flags } from '@oclif/command'; import { NAME as ZS_EXTRACT_NAME, VERSION as ZS_EXTRACT_VERSION } from 'zs-extract'; import { NAME, VERSION } from "../meta.mjs"; import { Command } from "../command.mjs"; /** * Info command. */ export class Info extends Command { /** * Description. */ /** * Examples. */ /** * Flags. */ /** * Arguments. */ /** * Handler. */ // eslint-disable-next-line @typescript-eslint/require-await async run() { this.parse(Info); this.log('Version:'); this.log(` ${NAME}: ${VERSION}`); this.log(''); this.log('Library versions:'); for (const info of [[ZS_EXTRACT_NAME, ZS_EXTRACT_VERSION]]) { this.log(` ${info[0]}: ${info[1]}`); } this.log(''); } } _defineProperty(Info, "description", 'display info about program'); _defineProperty(Info, "examples", []); _defineProperty(Info, "flags", { help: flags.help({ char: 'h' }) }); _defineProperty(Info, "args", []); export default Info; //# sourceMappingURL=info.mjs.map