MCPcopy Create free account
hub / github.com/Noumena-Network/code / disableAllPlugins

Function disableAllPlugins

src/services/plugins/pluginCliCommands.ts:271–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269 * CLI command: Disable all enabled plugins non-interactively
270 */
271export async function disableAllPlugins(): Promise<void> {
272 try {
273 const result = await disableAllPluginsOp()
274
275 if (!result.success) {
276 throw new Error(result.message)
277 }
278
279 // biome-ignore lint/suspicious/noConsole:: intentional console output
280 console.log(`${figures.tick} ${result.message}`)
281
282 logEvent('ncode_plugin_disabled_all_cli', {})
283
284 cliOk()
285 } catch (error) {
286 handlePluginCommandError(error, 'disable-all')
287 }
288}
289
290/**
291 * CLI command: Update a plugin non-interactively

Callers 1

pluginDisableHandlerFunction · 0.85

Calls 4

disableAllPluginsOpFunction · 0.85
cliOkFunction · 0.85
handlePluginCommandErrorFunction · 0.85
logEventFunction · 0.50

Tested by

no test coverage detected