UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

50 lines 1.59 kB
import process from 'node:process'; export class BasePlatform { hbService; constructor(hbService) { this.hbService = hbService; } async install() { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async uninstall() { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async start() { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async stop() { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async restart() { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async beforeStart() { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async rebuild(all = false) { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async viewLogs() { this.hbService.logger('This command has not been implemented on this platform.', 'fail'); process.exit(0); } async getId() { return { uid: 0, gid: 0, }; } getPidOfPort(port) { return null; } async updateNodejs(job) { } } //# sourceMappingURL=base-platform.js.map