vodafone-station-cli
Version:
Access your Vodafone Station from the comfort of the command line.
20 lines (19 loc) • 684 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ipFlag = void 0;
const core_1 = require("@oclif/core");
const dotenv_1 = require("dotenv");
const logger_1 = require("./logger");
(0, dotenv_1.config)();
const ipFlag = () => core_1.Flags.string({
char: 'i',
description: 'IP address of the modem/router (default: try 192.168.100.1 and 192.168.0.1)',
env: 'VODAFONE_ROUTER_IP',
});
exports.ipFlag = ipFlag;
class BaseCommand extends core_1.Command {
get logger() {
return new logger_1.OclifLogger(this.log.bind(this), this.warn.bind(this), this.debug.bind(this), this.error.bind(this));
}
}
exports.default = BaseCommand;