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