MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / isMainPushPluginEnabled

Function isMainPushPluginEnabled

src/shared/pluginSettings.ts:13–18  ·  view source on GitHub ↗
(
  pluginName: string,
  disabledPluginNames: string[]
)

Source from the content-addressed store, hash-verified

11}
12
13export function isMainPushPluginEnabled(
14 pluginName: string,
15 disabledPluginNames: string[]
16): boolean {
17 return !disabledPluginNames.includes(pluginName)
18}
19
20export function removePluginNameFromSettingList(data: string[], pluginName: string): string[] {
21 return data.filter((name) => name !== pluginName)

Callers 2

buildPluginCommandItemsFunction · 0.90
loadPluginSettingsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected