mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
New Plugin API
- Homebridge calls single exported initializer function and passes an API object - No more require() for HAP classes (doesn't play well with plugin structure)
This commit is contained in:
13
lib/cli.js
13
lib/cli.js
@@ -4,17 +4,18 @@ var version = require('./version');
|
||||
var Server = require('./server').Server;
|
||||
var Plugin = require('./plugin').Plugin;
|
||||
var User = require('./user').User;
|
||||
var log = require("./logger")._system;
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = function() {
|
||||
|
||||
console.log("_____________________________________________________________________");
|
||||
console.log("IMPORTANT: Homebridge is in the middle of some big changes.");
|
||||
console.log(" Read more about it here:");
|
||||
console.log(" https://github.com/nfarina/homebridge/wiki/Migration-Guide");
|
||||
console.log("_____________________________________________________________________");
|
||||
console.log("");
|
||||
log.warn("_____________________________________________________________________");
|
||||
log.warn("IMPORTANT: Homebridge is in the middle of some big changes.");
|
||||
log.warn(" Read more about it here:");
|
||||
log.warn(" https://github.com/nfarina/homebridge/wiki/Migration-Guide");
|
||||
log.warn("_____________________________________________________________________");
|
||||
log.warn("");
|
||||
|
||||
program
|
||||
.version(version)
|
||||
|
||||
Reference in New Issue
Block a user