(customDefs)
| 239 | |
| 240 | // Helper to get all config names including aliases from custom definitions |
| 241 | const getCustomConfigNames = (customDefs) => { |
| 242 | const names = new Set() |
| 243 | for (const def of customDefs) { |
| 244 | names.add(def.key) |
| 245 | if (def.alias && Array.isArray(def.alias)) { |
| 246 | def.alias.forEach(a => names.add(a)) |
| 247 | } |
| 248 | } |
| 249 | return [...names] |
| 250 | } |
| 251 | |
| 252 | // the current word has a dash. |
| 253 | // Return the config names with the same number of dashes as the current word has. |
no test coverage detected