()
| 273 | * CLI command: Disable all enabled plugins non-interactively |
| 274 | */ |
| 275 | export async function disableAllPlugins(): Promise<void> { |
| 276 | try { |
| 277 | const result = await disableAllPluginsOp() |
| 278 | |
| 279 | if (!result.success) { |
| 280 | throw new Error(result.message) |
| 281 | } |
| 282 | |
| 283 | // biome-ignore lint/suspicious/noConsole:: intentional console output |
| 284 | console.log(`${figures.tick} ${result.message}`) |
| 285 | |
| 286 | logEvent('tengu_plugin_disabled_all_cli', {}) |
| 287 | |
| 288 | // eslint-disable-next-line custom-rules/no-process-exit |
| 289 | process.exit(0) |
| 290 | } catch (error) { |
| 291 | handlePluginCommandError(error, 'disable-all') |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * CLI command: Update a plugin non-interactively |
no test coverage detected