Load installed server add-ons
Reviewed By: nikoant Differential Revision: D34300475 fbshipit-source-id: 6bb6c0ab811e28806a0924b3487931bdb0dd2c59
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b4b9c0ab28
commit
8b94186783
@@ -13,6 +13,10 @@ import {
|
||||
FlipperServerEvents,
|
||||
} from './server-types';
|
||||
|
||||
export type ServerAddOnStartDetails =
|
||||
| {isBundled: true; path?: never}
|
||||
| {isBundled?: false; path: string};
|
||||
|
||||
export interface ServerAddOnControls {
|
||||
start: FlipperServerCommands['plugins-server-add-on-start'];
|
||||
stop: FlipperServerCommands['plugins-server-add-on-stop'];
|
||||
|
||||
@@ -17,6 +17,7 @@ import {
|
||||
OS as PluginOS,
|
||||
UpdatablePluginDetails,
|
||||
} from './PluginDetails';
|
||||
import {ServerAddOnStartDetails} from './ServerAddOn';
|
||||
import {
|
||||
EnvironmentInfo,
|
||||
LauncherSettings,
|
||||
@@ -252,6 +253,7 @@ export type FlipperServerCommands = {
|
||||
'plugins-remove-plugins': (names: string[]) => Promise<void>;
|
||||
'plugins-server-add-on-start': (
|
||||
pluginName: string,
|
||||
details: ServerAddOnStartDetails,
|
||||
owner: string,
|
||||
) => Promise<void>;
|
||||
'plugins-server-add-on-stop': (
|
||||
|
||||
Reference in New Issue
Block a user