zippycli
Version:
An unofficial Zippyshare CLI
75 lines (54 loc) • 1.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.Info = void 0;
var _command = require("@oclif/command");
var _zsExtract = require("zs-extract");
var _meta = require("../meta");
var _command2 = require("../command");
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; }
/**
* Info command.
*/
class Info extends _command2.Command {
/**
* Description.
*/
/**
* Examples.
*/
/**
* Flags.
*/
/**
* Arguments.
*/
/**
* Handler.
*/
// eslint-disable-next-line @typescript-eslint/require-await
async run() {
this.parse(Info);
this.log('Version:');
this.log(` ${_meta.NAME}: ${_meta.VERSION}`);
this.log('');
this.log('Library versions:');
for (const info of [[_zsExtract.NAME, _zsExtract.VERSION]]) {
this.log(` ${info[0]}: ${info[1]}`);
}
this.log('');
}
}
exports.Info = Info;
_defineProperty(Info, "description", 'display info about program');
_defineProperty(Info, "examples", []);
_defineProperty(Info, "flags", {
help: _command.flags.help({
char: 'h'
})
});
_defineProperty(Info, "args", []);
var _default = Info;
exports.default = _default;
//# sourceMappingURL=info.js.map