Add Flipper server command definitions
Reviewed By: lblasa Differential Revision: D33980529 fbshipit-source-id: b64f48134d4816d3502c70d15beff90a044490a4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
035ba5613c
commit
fc20abf392
@@ -419,6 +419,10 @@ export class FlipperServerImpl implements FlipperServer {
|
||||
'plugins-install-from-npm': (name) =>
|
||||
this.pluginManager.installPluginFromNpm(name),
|
||||
'plugin-source': (path) => this.pluginManager.loadSource(path),
|
||||
'plugins-server-add-on-start': (pluginName) =>
|
||||
this.pluginManager.startServerAddOn(pluginName),
|
||||
'plugins-server-add-on-stop': (pluginName) =>
|
||||
this.pluginManager.stopServerAddOn(pluginName),
|
||||
'doctor-get-healthchecks': getHealthChecks,
|
||||
'doctor-run-healthcheck': runHealthcheck,
|
||||
'open-file': openFile,
|
||||
|
||||
@@ -151,4 +151,12 @@ export class PluginManager {
|
||||
await fs.remove(tmpDir);
|
||||
}
|
||||
}
|
||||
|
||||
async startServerAddOn(pluginName: string) {
|
||||
console.debug('PluginManager.startServerAddOn', pluginName);
|
||||
}
|
||||
|
||||
async stopServerAddOn(pluginName: string) {
|
||||
console.debug('PluginManager.stopServerAddOn', pluginName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user