( host: SlashCommandHost, source: string, )
| 472 | } |
| 473 | |
| 474 | async function installPluginFromSource( |
| 475 | host: SlashCommandHost, |
| 476 | source: string, |
| 477 | ): Promise<void> { |
| 478 | const session = host.requireSession(); |
| 479 | const beforeList = await session.listPlugins(); |
| 480 | const summary = await session.installPlugin( |
| 481 | resolvePluginInstallSource(source, host.state.appState.workDir), |
| 482 | ); |
| 483 | showPluginInstallResult(host, beforeList, summary); |
| 484 | } |
| 485 | |
| 486 | const PLUGIN_RELOAD_HINT = 'Run /new or /reload to apply plugin changes.'; |
| 487 |
no test coverage detected