()
| 702 | }; |
| 703 | |
| 704 | const getPluginDirs = () => { |
| 705 | const roots = getSearchRoots(); |
| 706 | const dirs = []; |
| 707 | |
| 708 | for (const root of roots) { |
| 709 | const pluginDir = path.join(root, 'plugin'); |
| 710 | if (fs.existsSync(pluginDir)) { |
| 711 | dirs.push({ path: pluginDir, source: 'plugin-dir', root }); |
| 712 | } |
| 713 | |
| 714 | const pluginsDir = path.join(root, 'plugins'); |
| 715 | if (fs.existsSync(pluginsDir)) { |
| 716 | dirs.push({ path: pluginsDir, source: 'plugins-dir', root }); |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | return dirs; |
| 721 | }; |
| 722 | |
| 723 | const loadCommandsFromDir = (dirInfo) => { |
| 724 | const commands = []; |
no test coverage detected